solana_account

Function from_account

Source
pub fn from_account<S: Sysvar, T: ReadableAccount>(account: &T) -> Option<S>
Available on crate feature bincode only.
Expand description

Create a Sysvar from an Account’s data.