Enum value_trait::ValueType
source · pub enum ValueType {
Null,
Bool,
I64,
I128,
U64,
U128,
F64,
String,
Array,
Object,
Extended(ExtendedValueType),
Custom(&'static str),
}
Expand description
Types of JSON values
Variants§
Null
null
Bool
a boolean
I64
a signed integer type
I128
a 128 bit signed integer
U64
a unsigned integer type
U128
a 128 bit unsigned integer
F64
a float type
String
a string type
Array
an array
Object
an object
Extended(ExtendedValueType)
Extended types that do not have a real representation in JSON
Custom(&'static str)
a custom type
Trait Implementations§
source§impl PartialEq for ValueType
impl PartialEq for ValueType
impl Copy for ValueType
impl Eq for ValueType
impl StructuralEq for ValueType
impl StructuralPartialEq for ValueType
Auto Trait Implementations§
impl RefUnwindSafe for ValueType
impl Send for ValueType
impl Sync for ValueType
impl Unpin for ValueType
impl UnwindSafe for ValueType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more