pub struct RemainingLazySlot<'a> { /* private fields */ }Expand description
One lazily-selected remaining-account slot.
Implementations§
Source§impl<'a> RemainingLazySlot<'a>
impl<'a> RemainingLazySlot<'a>
Sourcepub const fn account(&self) -> &'a AccountView<'a>
pub const fn account(&self) -> &'a AccountView<'a>
Return the raw account view.
Sourcepub fn unchecked(&self) -> UncheckedAccount<'a>
pub fn unchecked(&self) -> UncheckedAccount<'a>
Bind this slot as an unchecked account role.
Sourcepub fn signer(&self) -> Result<Signer<'a>, ProgramError>
pub fn signer(&self) -> Result<Signer<'a>, ProgramError>
Validate this slot as a signer.
Sourcepub fn external<T: ExternalZeroCopy>(
&self,
) -> Result<ExternalAccount<'a, T>, ProgramError>
pub fn external<T: ExternalZeroCopy>( &self, ) -> Result<ExternalAccount<'a, T>, ProgramError>
Validate this slot as a known external layout.
Auto Trait Implementations§
impl<'a> !Send for RemainingLazySlot<'a>
impl<'a> !Sync for RemainingLazySlot<'a>
impl<'a> Freeze for RemainingLazySlot<'a>
impl<'a> RefUnwindSafe for RemainingLazySlot<'a>
impl<'a> Unpin for RemainingLazySlot<'a>
impl<'a> UnsafeUnpin for RemainingLazySlot<'a>
impl<'a> UnwindSafe for RemainingLazySlot<'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