Trait mango_v4::accounts_zerocopy::AccountReader
source · [−]pub trait AccountReader {
fn owner(&self) -> &Pubkey;
fn data(&self) -> &[u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[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.