Enum JsonValue
#[non_exhaustive]pub enum JsonValue {
Null,
Bool(bool),
UInt(u64),
Int(i64),
Double(f64),
String(String),
Array(Vec<JsonValue>),
Object(Vec<JsonMember>),
}Expand description
Owned JSON-like value tree used by style, GeoJSON, and copied native values.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Null
Bool(bool)
UInt(u64)
Int(i64)
Double(f64)
String(String)
Array(Vec<JsonValue>)
Object(Vec<JsonMember>)
Implementations§
Trait Implementations§
impl StructuralPartialEq for JsonValue
Auto Trait Implementations§
impl Freeze for JsonValue
impl RefUnwindSafe for JsonValue
impl Send for JsonValue
impl Sync for JsonValue
impl Unpin for JsonValue
impl UnsafeUnpin for JsonValue
impl UnwindSafe for JsonValue
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