#[non_exhaustive]pub enum Destructured {
Null,
Bool(bool),
Number(VNumber),
String(VString),
Bytes(VBytes),
Array(VArray),
Object(VObject),
DateTime(VDateTime),
QName(VQName),
Uuid(VUuid),
Char(char),
}Expand description
Enum for destructuring a Value by ownership.
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
Null value
Bool(bool)
Boolean value
Number(VNumber)
Number value
String(VString)
String value
Bytes(VBytes)
Bytes value
Array(VArray)
Array value
Object(VObject)
Object value
DateTime(VDateTime)
DateTime value
QName(VQName)
Qualified name value
Uuid(VUuid)
UUID value
Char(char)
Char value
Trait Implementations§
Source§impl Clone for Destructured
impl Clone for Destructured
Source§fn clone(&self) -> Destructured
fn clone(&self) -> Destructured
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Destructured
impl Debug for Destructured
Source§impl PartialEq for Destructured
impl PartialEq for Destructured
Source§fn eq(&self, other: &Destructured) -> bool
fn eq(&self, other: &Destructured) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Destructured
Auto Trait Implementations§
impl Freeze for Destructured
impl RefUnwindSafe for Destructured
impl Send for Destructured
impl Sync for Destructured
impl Unpin for Destructured
impl UnsafeUnpin for Destructured
impl UnwindSafe for Destructured
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