pub enum NodeData {
NoNode,
Scalar {
value: String,
style: ScalarStyle,
},
Sequence {
items: Vec<NodeItem>,
style: SequenceStyle,
},
Mapping {
pairs: Vec<NodePair>,
style: MappingStyle,
},
}Expand description
Node types.
Variants§
NoNode
An empty node.
Scalar
A scalar node.
Sequence
A sequence node.
Mapping
A mapping node.
Fields
§
style: MappingStyleThe mapping style.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NodeData
impl RefUnwindSafe for NodeData
impl Send for NodeData
impl Sync for NodeData
impl Unpin for NodeData
impl UnwindSafe for NodeData
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