TypeInfo

Trait TypeInfo 

Source
pub trait TypeInfo {
    // Required method
    fn info() -> &'static str;
}
Available on crate feature type_info only.
Expand description

Trait for type info.

Required Methods§

Source

fn info() -> &'static str

Returns the type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl TypeInfo for i8

Source§

fn info() -> &'static str

Source§

impl TypeInfo for i16

Source§

fn info() -> &'static str

Source§

impl TypeInfo for i32

Source§

fn info() -> &'static str

Source§

impl TypeInfo for i64

Source§

fn info() -> &'static str

Source§

impl TypeInfo for i128

Source§

fn info() -> &'static str

Source§

impl TypeInfo for isize

Source§

fn info() -> &'static str

Source§

impl TypeInfo for u8

Source§

fn info() -> &'static str

Source§

impl TypeInfo for u16

Source§

fn info() -> &'static str

Source§

impl TypeInfo for u32

Source§

fn info() -> &'static str

Source§

impl TypeInfo for u64

Source§

fn info() -> &'static str

Source§

impl TypeInfo for u128

Source§

fn info() -> &'static str

Source§

impl TypeInfo for usize

Source§

fn info() -> &'static str

Implementors§