Encoder

Trait Encoder 

Source
pub trait Encoder {
    type Encoder;

    // Required method
    fn encode(self) -> Self::Encoder;
}
Expand description

Gives the ability to encode bytes to ANSI background colors.

Required Associated Types§

Source

type Encoder

Type to encode bytes into ANSI color codes.

Required Methods§

Source

fn encode(self) -> Self::Encoder

Encode bytes into ANSI colors.

Implementors§

Source§

impl<T> Encoder for T
where T: Iterator<Item = u8>,

Source§

type Encoder = FlatMap<T, CodePair, fn(u8) -> CodePair>