Skip to main content

Encode

Trait Encode 

Source
pub trait Encode: Sized {
    // Required method
    fn encode<W>(self, out: &mut W) -> Result<(), Error>
       where W: Sink<Error = Error>;
}
Expand description

Consumes one body into the admitted output without repeating its size check.

Required Methods§

Source

fn encode<W>(self, out: &mut W) -> Result<(), Error>
where W: Sink<Error = Error>,

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<B: Encode> Encode for Plan<B>