[][src]Trait named_type::NamedType

pub trait NamedType {
    fn type_name() -> &'static str
    where
        Self: Sized
;
fn short_type_name() -> &'static str
    where
        Self: Sized
; }

A trait for getting the name of a type

Required methods

fn type_name() -> &'static str where
    Self: Sized

Returns the canonical name with the fully qualified module name for the given type

fn short_type_name() -> &'static str where
    Self: Sized

Returns a user-friendly short name for the given type

Loading content...

Implementors

Loading content...