solana_account

Function to_account

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

Serialize a Sysvar into an Account’s data.