Trait tea_sdk::serde::ToBytes

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

Required Methods§

fn to_bytes(&self) -> Result<Vec<u8>, Global>

fn bytes_len(&self) -> Result<usize, Global>

fn write_to(&self, w: impl SerBuf) -> Result<(), Global>

Object Safety§

This trait is not object safe.

Implementors§

§

impl<T> ToBytes for Twhere T: IsToBytes,