Flat

Trait Flat 

Source
pub trait Flat<'b>: Encode + Decode<'b> {
    // Provided methods
    fn flat(&self) -> Result<Vec<u8>, Error> { ... }
    fn unflat(bytes: &'b [u8]) -> Result<Self, Error> { ... }
}

Provided Methods§

Source

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

Source

fn unflat(bytes: &'b [u8]) -> Result<Self, Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§