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