simd_json::derived

Trait 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

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§