pub fn register_type_parser<T: TypeParser + Sync + 'static>(
name: &str,
parser: T,
) -> (&'static T, CoreTypeParser)Expand description
Register a custom parser with the API
Core calls the parser from any thread, so it must be Sync.
pub fn register_type_parser<T: TypeParser + Sync + 'static>(
name: &str,
parser: T,
) -> (&'static T, CoreTypeParser)Register a custom parser with the API
Core calls the parser from any thread, so it must be Sync.