pub fn extract_name_by_type<T: ?Sized>() -> MessageName
Expand description

Extract a name using std::any::type_name and some heuristics:

  • known wrappers (Option, Result, Box and so on) are removed;
  • for known collections returns an empty name;
  • for primitives (integers and so on) returns an empty name;
  • paths are stripped;

Prefer extract_name if possible.

Availability

This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.