pub struct AppendVecStoredAccountMeta<'append_vec> {
pub meta: &'append_vec StoredMeta,
pub account_meta: &'append_vec AccountMeta,
/* private fields */
}
Expand description
References to account data stored elsewhere. Getting an Account
requires cloning
(see StoredAccountMeta::clone_account()
).
Fields§
§meta: &'append_vec StoredMeta
§account_meta: &'append_vec AccountMeta
account data
Implementations§
source§impl<'append_vec> AppendVecStoredAccountMeta<'append_vec>
impl<'append_vec> AppendVecStoredAccountMeta<'append_vec>
pub fn pubkey(&self) -> &'append_vec Pubkey
pub fn hash(&self) -> &'append_vec AccountHash
pub fn stored_size(&self) -> usize
pub fn offset(&self) -> usize
pub fn data(&self) -> &'append_vec [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: &'append_vec StoredMeta)
Trait Implementations§
source§impl<'append_vec> Debug for AppendVecStoredAccountMeta<'append_vec>
impl<'append_vec> Debug for AppendVecStoredAccountMeta<'append_vec>
source§impl<'append_vec> PartialEq for AppendVecStoredAccountMeta<'append_vec>
impl<'append_vec> PartialEq for AppendVecStoredAccountMeta<'append_vec>
source§fn eq(&self, other: &AppendVecStoredAccountMeta<'append_vec>) -> bool
fn eq(&self, other: &AppendVecStoredAccountMeta<'append_vec>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.source§impl<'append_vec> ReadableAccount for AppendVecStoredAccountMeta<'append_vec>
impl<'append_vec> ReadableAccount for AppendVecStoredAccountMeta<'append_vec>
impl<'append_vec> Eq for AppendVecStoredAccountMeta<'append_vec>
impl<'append_vec> StructuralPartialEq for AppendVecStoredAccountMeta<'append_vec>
Auto Trait Implementations§
impl<'append_vec> Freeze for AppendVecStoredAccountMeta<'append_vec>
impl<'append_vec> RefUnwindSafe for AppendVecStoredAccountMeta<'append_vec>
impl<'append_vec> Send for AppendVecStoredAccountMeta<'append_vec>
impl<'append_vec> Sync for AppendVecStoredAccountMeta<'append_vec>
impl<'append_vec> Unpin for AppendVecStoredAccountMeta<'append_vec>
impl<'append_vec> UnwindSafe for AppendVecStoredAccountMeta<'append_vec>
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 Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more