Skip to main content

register_type_parser

Function register_type_parser 

Source
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.