#[repr(u8)]pub enum JsonType {
Null = 1,
Boolean = 2,
Integer = 4,
Number = 8,
String = 16,
Array = 32,
Object = 64,
}Expand description
Represents a JSON value type.
Discriminant order is Null < Boolean < Integer < Number < String < Array < Object
(primitives before compounds, integers before numbers); JsonTypeSet iterates in this order.
Variants§
Implementations§
Trait Implementations§
Source§impl BitOr for JsonType
impl BitOr for JsonType
Source§type Output = JsonTypeSet
type Output = JsonTypeSet
The resulting type after applying the
| operator.Source§impl BitOr<JsonType> for JsonTypeSet
impl BitOr<JsonType> for JsonTypeSet
Source§type Output = JsonTypeSet
type Output = JsonTypeSet
The resulting type after applying the
| operator.impl Copy for JsonType
impl Eq for JsonType
Source§impl From<JsonType> for JsonTypeSet
impl From<JsonType> for JsonTypeSet
Source§impl Ord for JsonType
impl Ord for JsonType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for JsonType
impl PartialOrd for JsonType
impl StructuralPartialEq for JsonType
Auto Trait Implementations§
impl Freeze for JsonType
impl RefUnwindSafe for JsonType
impl Send for JsonType
impl Sync for JsonType
impl Unpin for JsonType
impl UnsafeUnpin for JsonType
impl UnwindSafe for JsonType
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