pub fn read_account(&mut self, key: &Key) -> Result<Option<StoredValue>, Error> {
        if let Key::Account(_) = key {
            self.validate_key(key)?;
            self.tracking_copy
                .borrow_mut()
                .read(self.correlation_id, key)
                .map_err(Into::into)
        } else {
            panic!("Do not use this function for reading from non-account keys")
        }
    }
/// Read an account from the global state.
Read an account from the global state.
Read an account from the global state .
pub fn read_account(&mut self, key: &Key) -> Result<Option<StoredValue>, Error> {
        if let Key::Account(_) = key {
            self.validate_key(key)?;
            self.tracking_copy
                .borrow_mut()
                .read(self.correlation_id, key)
                .map_err(Into::into)
        } else {
            panic!("Do not use this function for reading from non-account keys")
        }
    }
pub fn read_account ( & mut self , key : & Key ) -> Result < Option < StoredValue > , Error > { if let Key :: Account ( _ ) = key { self . validate_key ( key ) ? ; self . tracking_copy . borrow_mut ( ) . read ( self . correlation_id , key ) . map_err ( Into :: into ) } else { panic ! ( " " ) } }
Read an account from the global state.
Read an account from the global state .
&mut self
key
&Key
&mut self
key
&Key