Skip to main content

Codec

Trait Codec 

Source
pub trait Codec: Encoder + Decoder { }
Expand description

A codec that can serialize and deserialize a value.

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§

Source§

impl<U> Codec for U
where U: Encoder + Decoder,

Blanket impl Codec for any type that implements Encoder and Decoder.