pub trait TypeName {
    // Required method
    fn type_name() -> Type;
}
Expand description

A trait the gives a name an version to a given type

Required Methods§

source

fn type_name() -> Type

Returns the Type of the &self. Lives only on the instance so you can be object-safe for use in dyn TypeName.

Implementations on Foreign Types§

source§

impl<T, const N: usize> TypeName for [T; N]where T: TypeName,

Implementors§