pub trait Codec:
Encoder
+ Decoder
+ Sized {
// Provided methods
fn encode(self) -> <Self as Encoder>::Encoder { ... }
fn decode(self) -> <Self as Decoder>::Decoder { ... }
}
Expand description
Gives the ability to en- / decode bytes to / from ANSI background colors.
Provided Methods§
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.