pub trait CustomTagParser {
    type Output;

    fn parse(&mut self, s: &str) -> Option<Self::Output>;
}
Expand description

A common trait for user to provide custom tag parser to a tag convertor.

Closure FnMut(&str) -> Output and NoopCustomTagParser impl this trait for convenient.

Required Associated Types

Custom tag type.

Required Methods

Parse string to custom tag type.

Implementors