TypeInfo

Trait TypeInfo 

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

A trait to get the data type as a string for a integer and floating point types.

Required Methods§

Source

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

Returns the variable type as a string

Implementations on Foreign Types§

Source§

impl TypeInfo for f32

Source§

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

Source§

impl TypeInfo for f64

Source§

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

Source§

impl TypeInfo for i8

Source§

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

Source§

impl TypeInfo for i16

Source§

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

Source§

impl TypeInfo for i32

Source§

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

Source§

impl TypeInfo for i64

Source§

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

Source§

impl TypeInfo for u8

Source§

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

Source§

impl TypeInfo for u16

Source§

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

Source§

impl TypeInfo for u32

Source§

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

Source§

impl TypeInfo for u64

Source§

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

Implementors§