Skip to main content

Codec

Trait Codec 

Source
pub trait Codec<EncodeInput: ?Sized, DecodeInput: ?Sized>: Encoder<EncodeInput> + Decoder<DecodeInput> { }
Expand description

Combines an Encoder and a Decoder into a bidirectional codec.

Implementors§

Source§

impl<T, EncodeInput: ?Sized, DecodeInput: ?Sized> Codec<EncodeInput, DecodeInput> for T
where T: Encoder<EncodeInput> + Decoder<DecodeInput>,