pub struct Ctx<'a, T>where
T: FromAccountInfos<'a>,{
pub accounts: T,
pub remaining_accounts: AccountIter<'a>,
}Expand description
§Context
A context consists of a set of typed/named accounts T
with constraints applied and a remaining accounts iterator.
Fields§
§accounts: T§remaining_accounts: AccountIter<'a>Implementations§
Source§impl<'a, T> Ctx<'a, T>where
T: FromAccountInfos<'a>,
impl<'a, T> Ctx<'a, T>where
T: FromAccountInfos<'a>,
pub fn construct(account_infos: &'a [AccountInfo]) -> Result<Self>
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for Ctx<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for Ctx<'a, T>where
T: RefUnwindSafe,
impl<'a, T> !Send for Ctx<'a, T>
impl<'a, T> !Sync for Ctx<'a, T>
impl<'a, T> Unpin for Ctx<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for Ctx<'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