Format

Trait Format 

Source
pub trait Format {
    type Input;

    // Required method
    fn transform(&self, input: Self::Input) -> Option<Self::Input>;

    // Provided method
    fn chain<F>(self, next: F) -> ChainedFormat<Self, F>
       where Self: Sized,
             F: Format<Input = Self::Input> { ... }
}

Required Associated Types§

Required Methods§

Source

fn transform(&self, input: Self::Input) -> Option<Self::Input>

Provided Methods§

Source

fn chain<F>(self, next: F) -> ChainedFormat<Self, F>
where Self: Sized, F: Format<Input = Self::Input>,

Implementors§