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