Skip to main content

IntoAccountInfo

Trait IntoAccountInfo 

Source
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§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'a, T: Account> IntoAccountInfo<'a> for &'a mut (Pubkey, T)

Convert &’a mut (Pubkey, T) where T: Account into an AccountInfo.

Source§

impl<'a, T: Account> IntoAccountInfo<'a> for (&'a Pubkey, &'a mut T)

Convert (&’a Pubkey, &’a mut T) where T: Account into an AccountInfo

Source§

impl<'a, T: Account> IntoAccountInfo<'a> for (&'a Pubkey, bool, &'a mut T)

Convert (&’a Pubkey, bool, &’a mut T) where T: Account into an AccountInfo.

Implementors§