[][src]Trait cyrconv::mapper::Mapper

pub trait Mapper {
    type Input;
    type Result;
    fn map(&self, c: Self::Input) -> Result<Self::Result, String>;
}

Associated Types

type Input

type Result

Loading content...

Required methods

fn map(&self, c: Self::Input) -> Result<Self::Result, String>

maps a single char to another one. The implementing Mapper must provide a HashMap<char, char>

Loading content...

Implementors

impl Mapper for Simple[src]

type Input = char

type Result = char

Loading content...