pub fn add_account(&self, identifier: &ID, initial_value: Value) -> Result<Self, LedgerError> {
        self.0
            .insert(identifier.clone(), AccountState::new(initial_value))
            .map(Ledger)
            .map_err(|e| e.into())
    }
/// Add a new account into this ledger.
///
/// If the identifier is already present, error out.
Add a new account into this ledger.
If the identifier is already present, error out.
Add a new account into this ledger . If the identifier is already present error out .
pub fn add_account(&self, identifier: &ID, initial_value: Value) -> Result<Self, LedgerError> {
        self.0
            .insert(identifier.clone(), AccountState::new(initial_value))
            .map(Ledger)
            .map_err(|e| e.into())
    }
pub fn add_account ( & self , identifier : & ID , initial_value : Value ) -> Result < Self , LedgerError > { self . 0 . insert ( identifier . clone ( ) , AccountState :: new ( initial_value ) ) . map ( Ledger ) . map_err ( | e | e . into ( ) ) }
Add a new account into this ledger.
Add a new account into this ledger .
&self
identifier
&ID
initial_value
Value
&self
identifier
&ID
initial_value
Value