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§
sourcefn is_integer(&self) -> bool
fn is_integer(&self) -> bool
returns true if the current value a integer number
sourcefn is_f64_castable(&self) -> bool
fn is_f64_castable(&self) -> bool
returns true if the current value can be cast into a f64