pub enum PartialElement {
Unit,
Value(Value),
Option(Option<Box<PartialElement>>),
Variant(String, Box<PartialElement>),
Struct(PartialStruct),
List(PartialList),
Map(PartialMap),
Array(PartialArray),
Compression(PartialCompression),
}Expand description
A partial, unread, element with a pointer.
Variants§
Unit
Value(Value)
Option(Option<Box<PartialElement>>)
Variant(String, Box<PartialElement>)
Struct(PartialStruct)
List(PartialList)
Map(PartialMap)
Array(PartialArray)
Compression(PartialCompression)
Trait Implementations§
Source§impl Clone for PartialElement
impl Clone for PartialElement
Source§fn clone(&self) -> PartialElement
fn clone(&self) -> PartialElement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PartialElement
impl RefUnwindSafe for PartialElement
impl Send for PartialElement
impl Sync for PartialElement
impl Unpin for PartialElement
impl UnwindSafe for PartialElement
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