pub enum CommentedNode {
Scalar(Value),
Array(Vec<Commented>),
Object(Vec<(String, Commented)>),
}Variants§
Scalar(Value)
A scalar (never Value::Array/Value::Object - those are the variants
below, so comments can attach to every element/entry).
Array(Vec<Commented>)
Object(Vec<(String, Commented)>)
Trait Implementations§
Source§impl Clone for CommentedNode
impl Clone for CommentedNode
Source§fn clone(&self) -> CommentedNode
fn clone(&self) -> CommentedNode
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 CommentedNode
impl Debug for CommentedNode
Source§impl PartialEq for CommentedNode
impl PartialEq for CommentedNode
Source§fn eq(&self, other: &CommentedNode) -> bool
fn eq(&self, other: &CommentedNode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CommentedNode
Auto Trait Implementations§
impl Freeze for CommentedNode
impl RefUnwindSafe for CommentedNode
impl Send for CommentedNode
impl Sync for CommentedNode
impl Unpin for CommentedNode
impl UnsafeUnpin for CommentedNode
impl UnwindSafe for CommentedNode
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