pub struct RemainingLazy<'a> { /* private fields */ }Expand description
Random-access lazy parser for remaining accounts.
Implementations§
Source§impl<'a> RemainingLazy<'a>
impl<'a> RemainingLazy<'a>
Sourcepub fn at(&self, index: usize) -> Result<RemainingLazySlot<'a>, ProgramError>
pub fn at(&self, index: usize) -> Result<RemainingLazySlot<'a>, ProgramError>
Select a remaining-account slot by index without validating any other external accounts in the tail.
Auto Trait Implementations§
impl<'a> !Send for RemainingLazy<'a>
impl<'a> !Sync for RemainingLazy<'a>
impl<'a> Freeze for RemainingLazy<'a>
impl<'a> RefUnwindSafe for RemainingLazy<'a>
impl<'a> Unpin for RemainingLazy<'a>
impl<'a> UnsafeUnpin for RemainingLazy<'a>
impl<'a> UnwindSafe for RemainingLazy<'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