linera_sdk

Trait ToBcsBytes

Source
pub trait ToBcsBytes {
    // Required method
    fn to_bcs_bytes(&self) -> Result<Vec<u8>, Error>;
}
Expand description

Extension trait to serialize a type into a vector of bytes using bcs.

Required Methods§

Source

fn to_bcs_bytes(&self) -> Result<Vec<u8>, Error>

Serializes itself into a vector of bytes using bcs.

Implementors§

Source§

impl<T> ToBcsBytes for T
where T: Serialize,