Trait kserd::ds::NumberType[][src]

pub trait NumberType: Into<Number> {
    fn identity(&self) -> &'static str;
}

A type that can be converted into a Number. The type also has a string type identity. Used primarily in Kserd::new_num to accept any Rust number type.

Required methods

fn identity(&self) -> &'static str[src]

The type name.

Loading content...

Implementations on Foreign Types

impl NumberType for usize[src]

impl NumberType for u8[src]

impl NumberType for u16[src]

impl NumberType for u32[src]

impl NumberType for u64[src]

impl NumberType for u128[src]

impl NumberType for isize[src]

impl NumberType for i8[src]

impl NumberType for i16[src]

impl NumberType for i32[src]

impl NumberType for i64[src]

impl NumberType for i128[src]

impl NumberType for f32[src]

impl NumberType for f64[src]

Loading content...

Implementors

Loading content...