solana_sdk::account

Function 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.