Function tynm::type_name

source ·
pub fn type_name<T>() -> String
where T: ?Sized,
Expand description

Returns the simple type name.

§Type Parameters

  • T: Type whose simple type name should be returned.

§Examples

assert_eq!(tynm::type_name::<Option<String>>(), "Option<String>",);