pub trait Decoderwhere
    Self::Parser: Iterator<Item = Result<Code, Self::Error>>,
    Self::Decoder: Iterator<Item = Result<u8, Self::Error>>,{
    type Parser;
    type Decoder;
    type Error;

    // Required methods
    fn parse(self) -> Self::Parser;
    fn decode(self) -> Self::Decoder;
}
Expand description

Gives the ability to decode bytes from ANSI background colors

Required Associated Types§

Required Methods§

source

fn parse(self) -> Self::Parser

source

fn decode(self) -> Self::Decoder

Implementors§

source§

impl<T> Decoder for Twhere T: Iterator<Item = u8>,

§

type Parser = Parser<T>

§

type Decoder = PairDecoder<Parser<T>>

§

type Error = Error