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> { ... }
}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> { ... }
}