ExtTypeName

Trait ExtTypeName 

Source
pub trait ExtTypeName {
    // Required method
    fn type_name(&self) -> &str
       where Self: Sized;
}
Expand description

Trait to retrieve the string value (i.e. name) of a type.

Credits: https://stackoverflow.com/a/56100816/10237506

Required Methods§

Source

fn type_name(&self) -> &str
where Self: Sized,

Retrieve the string value of a type.

Implementations on Foreign Types§

Source§

impl ExtTypeName for &str

Source§

fn type_name(&self) -> &str

Source§

impl ExtTypeName for bool

Source§

fn type_name(&self) -> &str

Source§

impl ExtTypeName for char

Source§

fn type_name(&self) -> &str

Source§

impl ExtTypeName for f32

Source§

fn type_name(&self) -> &str

Source§

impl ExtTypeName for f64

Source§

fn type_name(&self) -> &str

Source§

impl ExtTypeName for i8

Source§

fn type_name(&self) -> &str

Source§

impl ExtTypeName for i16

Source§

fn type_name(&self) -> &str

Source§

impl ExtTypeName for i32

Source§

fn type_name(&self) -> &str

Source§

impl ExtTypeName for i64

Source§

fn type_name(&self) -> &str

Source§

impl ExtTypeName for i128

Source§

fn type_name(&self) -> &str

Source§

impl ExtTypeName for str

Source§

fn type_name(&self) -> &str

Source§

impl ExtTypeName for u8

Source§

fn type_name(&self) -> &str

Source§

impl ExtTypeName for u16

Source§

fn type_name(&self) -> &str

Source§

impl ExtTypeName for u32

Source§

fn type_name(&self) -> &str

Source§

impl ExtTypeName for u64

Source§

fn type_name(&self) -> &str

Source§

impl ExtTypeName for u128

Source§

fn type_name(&self) -> &str

Source§

impl ExtTypeName for usize

Source§

fn type_name(&self) -> &str

Source§

impl ExtTypeName for String

Source§

fn type_name(&self) -> &str

Implementors§