#[non_exhaustive]pub enum NodeKind {
Scalar(Scalar),
Sequence(Vec<Node>),
Mapping(Vec<(Node, Node)>),
}Available on crate features
json or toml or yaml only.Expand description
What a Node holds.
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.
Scalar(Scalar)
A scalar, with its processed value and style.
Sequence(Vec<Node>)
The items of a sequence or array, in the order written.
Mapping(Vec<(Node, Node)>)
The entries of a mapping or table, as a key node and a value node, in the order written.
Trait Implementations§
impl Eq for NodeKind
impl StructuralPartialEq for NodeKind
Auto Trait Implementations§
impl Forget for NodeKind
impl Freeze for NodeKind
impl Move for NodeKind
impl RefUnwindSafe for NodeKind
impl Send for NodeKind
impl Sync for NodeKind
impl Unpin for NodeKind
impl UnsafeUnpin for NodeKind
impl UnwindSafe for NodeKind
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