pub trait IntoAccountInfo<'a> {
// Required method
fn into_account_info(self) -> AccountInfo<'a>;
}
Expand description
Constructs an AccountInfo
from self, used in conversion implementations.
Required Methods§
fn into_account_info(self) -> AccountInfo<'a>
Implementations on Foreign Types§
§impl<'a, T> IntoAccountInfo<'a> for &'a mut (Pubkey, T)where
T: Account,
impl<'a, T> IntoAccountInfo<'a> for &'a mut (Pubkey, T)where
T: Account,
Convert &’a mut (Pubkey, T) where T: Account into an AccountInfo
.
fn into_account_info(self) -> AccountInfo<'a>
§impl<'a, T> IntoAccountInfo<'a> for (&'a Pubkey, bool, &'a mut T)where
T: Account,
impl<'a, T> IntoAccountInfo<'a> for (&'a Pubkey, bool, &'a mut T)where
T: Account,
Convert (&’a Pubkey, bool, &’a mut T) where T: Account into an
AccountInfo
.
fn into_account_info(self) -> AccountInfo<'a>
§impl<'a, T> IntoAccountInfo<'a> for (&'a Pubkey, &'a mut T)where
T: Account,
impl<'a, T> IntoAccountInfo<'a> for (&'a Pubkey, &'a mut T)where
T: Account,
Convert (&’a Pubkey, &’a mut T) where T: Account into an AccountInfo