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.
pub fn from_account<S: Sysvar, T: ReadableAccount>(account: &T) -> Option<S>
bincode
only.Create a Sysvar
from an Account
’s data.