Skip to main content

EncodeWith

Trait EncodeWith 

Source
pub trait EncodeWith<A> {
    // Required method
    fn encode_with<K: Sink>(&self, w: &mut K, args: A) -> Result<(), BitError>;
}
Expand description

The dual of DecodeWith — polymorphic encode with context A.

Required Methods§

Source

fn encode_with<K: Sink>(&self, w: &mut K, args: A) -> Result<(), BitError>

Encodes self into a Sink given args.

§Errors

Propagates the encode BitError.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§