pub(crate) enum AnnotatedValue {
Scalar(Scalar),
Array(Vec<Annotated>),
Object(Entries),
}Expand description
The shape of an annotated value once markers have been decoded away.
Variants§
Scalar(Scalar)
A null, boolean, number, or string leaf.
Array(Vec<Annotated>)
An ordered sequence of annotated values.
Object(Entries)
An object with annotated entries, in render order.
Trait Implementations§
Source§impl Clone for AnnotatedValue
impl Clone for AnnotatedValue
Source§fn clone(&self) -> AnnotatedValue
fn clone(&self) -> AnnotatedValue
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 moreAuto Trait Implementations§
impl Freeze for AnnotatedValue
impl RefUnwindSafe for AnnotatedValue
impl Send for AnnotatedValue
impl Sync for AnnotatedValue
impl Unpin for AnnotatedValue
impl UnsafeUnpin for AnnotatedValue
impl UnwindSafe for AnnotatedValue
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