Function tiny_sdk::account::to_account
source · pub fn to_account<S: Sysvar, T: WritableAccount>(
sysvar: &S,
account: &mut T
) -> Option<()>Expand description
Serialize a Sysvar into an Account’s data.
pub fn to_account<S: Sysvar, T: WritableAccount>(
sysvar: &S,
account: &mut T
) -> Option<()>Serialize a Sysvar into an Account’s data.