Trait solana_program::sysvar::Sysvar[][src]

pub trait Sysvar: SysvarId + Default + Sized + Serialize + DeserializeOwned {
    fn size_of() -> usize { ... }
fn from_account_info(
        account_info: &AccountInfo<'_>
    ) -> Result<Self, ProgramError> { ... }
fn to_account_info(&self, account_info: &mut AccountInfo<'_>) -> Option<()> { ... } }

Provided methods

fn size_of() -> usize[src]

fn from_account_info(
    account_info: &AccountInfo<'_>
) -> Result<Self, ProgramError>
[src]

fn to_account_info(&self, account_info: &mut AccountInfo<'_>) -> Option<()>[src]

Loading content...

Implementors

Loading content...