Trait TypeName

Source
pub trait TypeName {
    // Required method
    fn type_name(&self) -> &'static str;
}
Expand description

A trait for types that have a name that can be included in log messages.

Required Methods§

Source

fn type_name(&self) -> &'static str

Returns the name of the type as a string.

Implementors§

Source§

impl<T: 'static> TypeName for T