Trait simd_json::prelude::TypedScalarValue

source ·
pub trait TypedScalarValue {
Show 21 methods // Required methods fn is_null(&self) -> bool; fn is_float(&self) -> bool; fn is_integer(&self) -> bool; fn is_number(&self) -> bool; fn is_bool(&self) -> bool; fn is_i128(&self) -> bool; fn is_i64(&self) -> bool; fn is_i32(&self) -> bool; fn is_i16(&self) -> bool; fn is_i8(&self) -> bool; fn is_u128(&self) -> bool; fn is_u64(&self) -> bool; fn is_usize(&self) -> bool; fn is_u32(&self) -> bool; fn is_u16(&self) -> bool; fn is_u8(&self) -> bool; fn is_f64(&self) -> bool; fn is_f64_castable(&self) -> bool; fn is_f32(&self) -> bool; fn is_str(&self) -> bool; fn is_char(&self) -> bool;
}
Expand description

Prelude to include needed traits Type checks for scalar values on a value

Required Methods§

source

fn is_null(&self) -> bool

returns true if the current value is null

source

fn is_float(&self) -> bool

returns true if the current value a floatingpoint number

source

fn is_integer(&self) -> bool

returns true if the current value a integer number

source

fn is_number(&self) -> bool

returns true if the current value a number either float or intege

source

fn is_bool(&self) -> bool

returns true if the current value a bool

source

fn is_i128(&self) -> bool

returns true if the current value can be represented as a i128

source

fn is_i64(&self) -> bool

returns true if the current value can be represented as a i64

source

fn is_i32(&self) -> bool

returns true if the current value can be represented as a i32

source

fn is_i16(&self) -> bool

returns true if the current value can be represented as a i16

source

fn is_i8(&self) -> bool

returns true if the current value can be represented as a i8

source

fn is_u128(&self) -> bool

returns true if the current value can be represented as a u128

source

fn is_u64(&self) -> bool

returns true if the current value can be represented as a u64

source

fn is_usize(&self) -> bool

returns true if the current value can be represented as a usize

source

fn is_u32(&self) -> bool

returns true if the current value can be represented as a u32

source

fn is_u16(&self) -> bool

returns true if the current value can be represented as a u16

source

fn is_u8(&self) -> bool

returns true if the current value can be represented as a u8

source

fn is_f64(&self) -> bool

returns true if the current value can be represented as a f64

source

fn is_f64_castable(&self) -> bool

returns true if the current value can be cast into a f64

source

fn is_f32(&self) -> bool

returns true if the current value can be represented as a f64

source

fn is_str(&self) -> bool

returns true if the current value can be represented as a str

source

fn is_char(&self) -> bool

returns true if the current value can be represented as a char

Implementors§