pub struct Snapshot<'info, T> { /* private fields */ }Implementations§
source§impl<'info, T> Snapshot<'info, T>where
T: IxOps<'info>,
impl<'info, T> Snapshot<'info, T>where
T: IxOps<'info>,
pub fn new_empty(ix: &'info T) -> Snapshot<'info, T>
pub fn add_metas(&mut self, metas: &[AccountMeta])
pub fn new(metas: &[AccountMeta], ix: &'info T) -> Snapshot<'info, T>
pub fn capture_before( &mut self, client: &mut impl FuzzClient, ) -> Result<(), FuzzClientErrorWithOrigin>
pub fn capture_after( &mut self, client: &mut impl FuzzClient, ) -> Result<(), FuzzClientErrorWithOrigin>
pub fn get_raw_pre_ix_accounts( &'info mut self, ) -> &'info [Option<AccountInfo<'info>>]
pub fn get_snapshot( &'info mut self, ) -> Result<(<T as IxOps<'info>>::IxSnapshot, <T as IxOps<'info>>::IxSnapshot), FuzzingErrorWithOrigin>
Auto Trait Implementations§
impl<'info, T> Freeze for Snapshot<'info, T>
impl<'info, T> !RefUnwindSafe for Snapshot<'info, T>
impl<'info, T> !Send for Snapshot<'info, T>
impl<'info, T> !Sync for Snapshot<'info, T>
impl<'info, T> Unpin for Snapshot<'info, T>
impl<'info, T> !UnwindSafe for Snapshot<'info, T>
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<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