TypeConverter

Trait TypeConverter 

Source
pub trait TypeConverter:
    Send
    + Sync
    + Debug {
    // Required method
    fn convert(&self, s: &str) -> Result<Box<dyn Any>, ParseError>;

    // Provided method
    fn get_pattern(&self) -> Option<&str> { ... }
}

Required Methods§

Source

fn convert(&self, s: &str) -> Result<Box<dyn Any>, ParseError>

Provided Methods§

Implementors§