Struct solana_runtime::append_vec::StoredAccountMeta
source · pub struct StoredAccountMeta<'a> {
pub meta: &'a StoredMeta,
pub account_meta: &'a AccountMeta,
pub data: &'a [u8],
pub offset: usize,
pub stored_size: usize,
pub hash: &'a Hash,
}Expand description
References to account data stored elsewhere. Getting an Account requires cloning
(see StoredAccountMeta::clone_account()).
Fields§
§meta: &'a StoredMeta§account_meta: &'a AccountMetaaccount data
data: &'a [u8]§offset: usize§stored_size: usize§hash: &'a HashImplementations§
source§impl<'a> StoredAccountMeta<'a>
impl<'a> StoredAccountMeta<'a>
sourcepub fn clone_account(&self) -> AccountSharedData
pub fn clone_account(&self) -> AccountSharedData
Return a new Account by copying all the data referenced by the StoredAccountMeta.
Trait Implementations§
source§impl<'a> Debug for StoredAccountMeta<'a>
impl<'a> Debug for StoredAccountMeta<'a>
source§impl<'a> PartialEq<StoredAccountMeta<'a>> for StoredAccountMeta<'a>
impl<'a> PartialEq<StoredAccountMeta<'a>> for StoredAccountMeta<'a>
source§fn eq(&self, other: &StoredAccountMeta<'a>) -> bool
fn eq(&self, other: &StoredAccountMeta<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'a> ReadableAccount for StoredAccountMeta<'a>
impl<'a> ReadableAccount for StoredAccountMeta<'a>
source§impl<'a> ZeroLamport for StoredAccountMeta<'a>
impl<'a> ZeroLamport for StoredAccountMeta<'a>
fn is_zero_lamport(&self) -> bool
impl<'a> Eq for StoredAccountMeta<'a>
impl<'a> StructuralEq for StoredAccountMeta<'a>
impl<'a> StructuralPartialEq for StoredAccountMeta<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for StoredAccountMeta<'a>
impl<'a> Send for StoredAccountMeta<'a>
impl<'a> Sync for StoredAccountMeta<'a>
impl<'a> Unpin for StoredAccountMeta<'a>
impl<'a> UnwindSafe for StoredAccountMeta<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.