You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Search for an account and account_reference and applies the function `f` if found.
826
-
///
827
-
///
826
+
///
827
+
///
828
828
/// The function `f` is called with a mutable reference to the account reference and an option to the mutable reference to the account.
829
-
///
829
+
///
830
830
/// # Arguments
831
-
///
831
+
///
832
832
/// * `anchor_number` - The anchor number of the account.
833
833
/// * `application_number` - The application number of the account.
834
834
/// * `account_number` - The account number of the account or None if synthetic account.
835
835
/// * `f` - The function to apply to the account.
836
-
///
836
+
///
837
837
/// If the `account_number` is None, storable account doesn't exist and account reference might exist.
838
838
/// * If the account reference exists, the function `f` is called with a mutable reference to the account reference and None as the second argument.
839
839
/// * If the account reference does not exist, None is returned.
840
-
///
840
+
///
841
841
/// If the `account_number` is Some, storable and account references exist.
842
842
/// * If the storable account exists, the function `f` is called with a mutable reference to the account reference and a mutable reference to the storable account.
843
843
/// * If the storable account does not exist, None is returned.
844
-
///
844
+
///
845
845
/// # Returns
846
-
///
846
+
///
847
847
/// * `None` if both account and account_reference are not found
848
848
/// * `Some(T)` if the account or account_reference are found where T is the result of the function `f`.
0 commit comments