Trait TypeExt

Source
pub trait TypeExt {
    // Required methods
    fn is_bool(&self) -> bool;
    fn is_integer(&self) -> bool;
    fn is_number(&self) -> bool;
    fn is_string(&self) -> bool;
}
Expand description

Extension methods for Type

Required Methods§

Source

fn is_bool(&self) -> bool

true if this type is Type::Boolean

Source

fn is_integer(&self) -> bool

true if this type is Type::Integer

Source

fn is_number(&self) -> bool

true if this type is Type::Number

Source

fn is_string(&self) -> bool

true if this type is Type::String

Implementations on Foreign Types§

Source§

impl TypeExt for Type

Source§

fn is_bool(&self) -> bool

Source§

fn is_integer(&self) -> bool

Source§

fn is_number(&self) -> bool

Source§

fn is_string(&self) -> bool

Implementors§