Skip to main content

register_type_printer

Function register_type_printer 

Source
pub fn register_type_printer<T: TypePrinter + Sync + 'static>(
    name: &str,
    printer: T,
) -> (&'static T, CoreTypePrinter)
Expand description

Register a custom printer with the API

Core calls the printer from any thread, so it must be Sync.