solana_program::serde_varint

Function serialize

source
pub fn serialize<S, T>(value: &T, serializer: S) -> Result<S::Ok, S::Error>
where T: Copy + VarInt, S: Serializer,