solana_sdk::account

Function from_account

source
pub fn from_account<S: Sysvar, T: ReadableAccount>(account: &T) -> Option<S>
Expand description

Create a Sysvar from an Account’s data.