pub struct AppendVecStoredAccountMeta<'a> {
pub meta: &'a StoredMeta,
pub account_meta: &'a AccountMeta,
pub(crate) data: &'a [u8],
pub(crate) offset: usize,
pub(crate) stored_size: usize,
pub(crate) 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 AccountMeta
account data
data: &'a [u8]
§offset: usize
§stored_size: usize
§hash: &'a Hash
Implementations§
source§impl<'a> AppendVecStoredAccountMeta<'a>
impl<'a> AppendVecStoredAccountMeta<'a>
pub fn clone_account(&self) -> AccountSharedData
pub fn pubkey(&self) -> &'a Pubkey
pub fn hash(&self) -> &'a Hash
pub fn stored_size(&self) -> usize
pub fn offset(&self) -> usize
pub fn data(&self) -> &'a [u8] ⓘ
pub fn data_len(&self) -> u64
pub fn write_version(&self) -> StoredMetaWriteVersion
pub fn meta(&self) -> &StoredMeta
pub fn set_meta(&mut self, meta: &'a StoredMeta)
pub(crate) fn sanitize(&self) -> bool
fn sanitize_executable(&self) -> bool
fn sanitize_lamports(&self) -> bool
fn ref_executable_byte(&self) -> &u8
Trait Implementations§
source§impl<'a> Debug for AppendVecStoredAccountMeta<'a>
impl<'a> Debug for AppendVecStoredAccountMeta<'a>
source§impl<'a> PartialEq<AppendVecStoredAccountMeta<'a>> for AppendVecStoredAccountMeta<'a>
impl<'a> PartialEq<AppendVecStoredAccountMeta<'a>> for AppendVecStoredAccountMeta<'a>
source§fn eq(&self, other: &AppendVecStoredAccountMeta<'a>) -> bool
fn eq(&self, other: &AppendVecStoredAccountMeta<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> ReadableAccount for AppendVecStoredAccountMeta<'a>
impl<'a> ReadableAccount for AppendVecStoredAccountMeta<'a>
impl<'a> Eq for AppendVecStoredAccountMeta<'a>
impl<'a> StructuralEq for AppendVecStoredAccountMeta<'a>
impl<'a> StructuralPartialEq for AppendVecStoredAccountMeta<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for AppendVecStoredAccountMeta<'a>
impl<'a> Send for AppendVecStoredAccountMeta<'a>
impl<'a> Sync for AppendVecStoredAccountMeta<'a>
impl<'a> Unpin for AppendVecStoredAccountMeta<'a>
impl<'a> UnwindSafe for AppendVecStoredAccountMeta<'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
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. 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.