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§