Trait mango_v4::accounts_zerocopy::AccountReader
source · pub trait AccountReader {
// Required methods
fn owner(&self) -> &Pubkey;
fn data(&self) -> &[u8] ⓘ;
}
Expand description
Functions should prefer to work with AccountReader where possible, to abstract over AccountInfo and AccountSharedData. That way the functions become usable in the program and in client code.