Trait simd_json::value::prelude::Value [−][src]
The Value
exposes common interface for values, this allows using both
BorrowedValue
and OwnedValue
nearly interchangable
Required methods
#[must_use]pub fn value_type(&self) -> ValueType
[src]
Returns the type of the current Valye
#[must_use]pub fn is_null(&self) -> bool
[src]
returns true if the current value is null
Provided methods
#[must_use]pub fn is_float(&self) -> bool
[src]
returns true if the current value a floatingpoint number
#[must_use]pub fn is_integer(&self) -> bool
[src]
returns true if the current value a integer number
#[must_use]pub fn is_number(&self) -> bool
[src]
returns true if the current value a number either float or integer
#[must_use]pub fn is_bool(&self) -> bool
[src]
returns true if the current value a bool
#[must_use]pub fn is_i128(&self) -> bool
[src]
returns true if the current value can be represented as a i128
#[must_use]pub fn is_i64(&self) -> bool
[src]
returns true if the current value can be represented as a i64
#[must_use]pub fn is_i32(&self) -> bool
[src]
returns true if the current value can be represented as a i32
#[must_use]pub fn is_i16(&self) -> bool
[src]
returns true if the current value can be represented as a i16
#[must_use]pub fn is_i8(&self) -> bool
[src]
returns true if the current value can be represented as a i8
#[must_use]pub fn is_u128(&self) -> bool
[src]
returns true if the current value can be represented as a u128
#[must_use]pub fn is_u64(&self) -> bool
[src]
returns true if the current value can be represented as a u64
#[must_use]pub fn is_usize(&self) -> bool
[src]
returns true if the current value can be represented as a usize
#[must_use]pub fn is_u32(&self) -> bool
[src]
returns true if the current value can be represented as a u32
#[must_use]pub fn is_u16(&self) -> bool
[src]
returns true if the current value can be represented as a u16
#[must_use]pub fn is_u8(&self) -> bool
[src]
returns true if the current value can be represented as a u8
#[must_use]pub fn is_f64(&self) -> bool
[src]
returns true if the current value can be represented as a f64
#[must_use]pub fn is_f64_castable(&self) -> bool
[src]
returns true if the current value can be cast into a f64
#[must_use]pub fn is_f32(&self) -> bool
[src]
returns true if the current value can be represented as a f64
#[must_use]pub fn is_str(&self) -> bool
[src]
returns true if the current value can be represented as a str
#[must_use]pub fn is_array(&self) -> bool
[src]
returns true if the current value can be represented as an array
#[must_use]pub fn is_object(&self) -> bool
[src]
returns true if the current value can be represented as an object