pub fn serialize_account<S>(
    account: &impl ReadableAccount + Serialize,
    serializer: S
) -> Result<S::Ok, S::Error>where
    S: Serializer,
Expand description

allows us to implement serialize on AccountSharedData that is equivalent to Account::serialize without making a copy of the Vec