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 24 methods fn value_type(&self) -> ValueType; 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 { ... } fn is_array(&self) -> bool { ... } 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

Returns the type of the current Valye

returns true if the current value is null

Provided Methods

returns true if the current value a floatingpoint number

returns true if the current value a integer number

returns true if the current value a number either float or integer

returns true if the current value a bool

returns true if the current value can be represented as a i128

returns true if the current value can be represented as a i64

returns true if the current value can be represented as a i32

returns true if the current value can be represented as a i16

returns true if the current value can be represented as a i8

returns true if the current value can be represented as a u128

returns true if the current value can be represented as a u64

returns true if the current value can be represented as a usize

returns true if the current value can be represented as a u32

returns true if the current value can be represented as a u16

returns true if the current value can be represented as a u8

returns true if the current value can be represented as a f64

returns true if the current value can be cast into a f64

returns true if the current value can be represented as a f64

returns true if the current value can be represented as a str

returns true if the current value can be represented as a char

returns true if the current value can be represented as an array

returns true if the current value can be represented as an object

Implementors