pub struct InterfaceAccount<'a, T>where
T: Discriminator + RefFromBytes,{ /* private fields */ }Trait Implementations§
Source§impl<T> AsRef<AccountView> for InterfaceAccount<'_, T>where
T: Discriminator + RefFromBytes,
impl<T> AsRef<AccountView> for InterfaceAccount<'_, T>where
T: Discriminator + RefFromBytes,
Source§fn as_ref(&self) -> &AccountView
fn as_ref(&self) -> &AccountView
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<'a, T> From<InterfaceAccount<'a, T>> for &'a AccountViewwhere
T: Discriminator + RefFromBytes,
impl<'a, T> From<InterfaceAccount<'a, T>> for &'a AccountViewwhere
T: Discriminator + RefFromBytes,
Source§fn from(value: InterfaceAccount<'a, T>) -> Self
fn from(value: InterfaceAccount<'a, T>) -> Self
Converts to this type from the input type.
Source§impl<'a, T> FromAccountInfo<'a> for InterfaceAccount<'a, T>
impl<'a, T> FromAccountInfo<'a> for InterfaceAccount<'a, T>
fn try_from_info(info: &'a AccountView) -> Result<Self, Error>
Source§impl<'a, T> FromRaw<'a> for InterfaceAccount<'a, T>where
T: RefFromBytes + Discriminator,
impl<'a, T> FromRaw<'a> for InterfaceAccount<'a, T>where
T: RefFromBytes + Discriminator,
fn from_raw(info: &'a AccountView) -> Self
Source§impl<T> ReadableAccount for InterfaceAccount<'_, T>where
T: RefFromBytes + Discriminator,
impl<T> ReadableAccount for InterfaceAccount<'_, T>where
T: RefFromBytes + Discriminator,
type DataUnchecked = T
type Data<'a> = Ref<'a, T> where Self: 'a
fn data<'a>(&'a self) -> Result<Self::Data<'a>, Error>
fn data_unchecked(&self) -> Result<&Self::DataUnchecked, Error>
fn address(&self) -> &Address
fn owned_by(&self, owner: &Address) -> bool
fn lamports(&self) -> u64
Auto Trait Implementations§
impl<'a, T> Freeze for InterfaceAccount<'a, T>
impl<'a, T> RefUnwindSafe for InterfaceAccount<'a, T>where
T: RefUnwindSafe,
impl<'a, T> !Send for InterfaceAccount<'a, T>
impl<'a, T> !Sync for InterfaceAccount<'a, T>
impl<'a, T> Unpin for InterfaceAccount<'a, T>where
T: Unpin,
impl<'a, T> UnsafeUnpin for InterfaceAccount<'a, T>
impl<'a, T> UnwindSafe for InterfaceAccount<'a, T>where
T: UnwindSafe,
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