Function solana_sdk::account::from_account [−][src]
pub fn from_account<S: Sysvar, T: ReadableAccount>(account: &T) -> Option<S>
Expand description
Create a Sysvar
from an Account
’s data.
pub fn from_account<S: Sysvar, T: ReadableAccount>(account: &T) -> Option<S>
Create a Sysvar
from an Account
’s data.