Skip to main content

SendFormat

Trait SendFormat 

Source
pub trait SendFormat {
    // Required method
    fn serialize<O: Serialize>(obj: &O) -> Result<Vec<u8>>;
}
Expand description

trait that represents the serialize side of a format

Required Methods§

Source

fn serialize<O: Serialize>(obj: &O) -> Result<Vec<u8>>

serialize object in this format

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§