Trait tea_sdk::serde::ToBytes

pub trait ToBytes {
    fn to_bytes(&self) -> Result<Vec<u8, Global>, Error<Serde>>;
    fn bytes_len(&self) -> Result<usize, Error<Serde>>;
    fn write_to(&self, w: impl SerBuf) -> Result<(), Error<Serde>>;
}

Required Methods§

Implementors§