Trait simd_json::value::prelude::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] pub fn value_type(&self) -> ValueType;
#[must_use] pub fn is_null(&self) -> bool; #[must_use] pub fn is_float(&self) -> bool { ... }
#[must_use] pub fn is_integer(&self) -> bool { ... }
#[must_use] pub fn is_number(&self) -> bool { ... }
#[must_use] pub fn is_bool(&self) -> bool { ... }
#[must_use] pub fn is_i128(&self) -> bool { ... }
#[must_use] pub fn is_i64(&self) -> bool { ... }
#[must_use] pub fn is_i32(&self) -> bool { ... }
#[must_use] pub fn is_i16(&self) -> bool { ... }
#[must_use] pub fn is_i8(&self) -> bool { ... }
#[must_use] pub fn is_u128(&self) -> bool { ... }
#[must_use] pub fn is_u64(&self) -> bool { ... }
#[must_use] pub fn is_usize(&self) -> bool { ... }
#[must_use] pub fn is_u32(&self) -> bool { ... }
#[must_use] pub fn is_u16(&self) -> bool { ... }
#[must_use] pub fn is_u8(&self) -> bool { ... }
#[must_use] pub fn is_f64(&self) -> bool { ... }
#[must_use] pub fn is_f64_castable(&self) -> bool { ... }
#[must_use] pub fn is_f32(&self) -> bool { ... }
#[must_use] pub fn is_str(&self) -> bool { ... }
#[must_use] pub fn is_array(&self) -> bool { ... }
#[must_use] pub fn is_object(&self) -> bool { ... }
}

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

Loading content...

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

Loading content...

Implementors

impl Value for StaticNode[src]

impl Value for simd_json::value::owned::Value[src]

impl<'value> Value for simd_json::value::borrowed::Value<'value>[src]

Loading content...