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.
pub fn register_type_printer<T: TypePrinter + Sync + 'static>(
name: &str,
printer: T,
) -> (&'static T, CoreTypePrinter)Register a custom printer with the API
Core calls the printer from any thread, so it must be Sync.