pub enum NodeKind {
Show 13 variants
Stream,
Document,
DocumentMarker,
Directive,
BlockMapping,
MappingEntry,
BlockSequence,
SequenceEntry,
FlowSequence,
FlowMapping,
LiteralScalar,
FoldedScalar,
Scalar,
}Expand description
Node kinds emitted by the CST parser.
Variants§
Stream
Complete YAML stream.
Document
Content document inside a stream.
DocumentMarker
Explicit document start or end marker.
Directive
YAML directive line.
BlockMapping
Block mapping collection.
MappingEntry
One mapping entry line.
BlockSequence
Block sequence collection.
SequenceEntry
One block or flow sequence item wrapper.
FlowSequence
Single-line flow sequence collection.
FlowMapping
Single-line flow mapping collection.
LiteralScalar
Literal block scalar collection.
FoldedScalar
Folded block scalar collection.
Scalar
Scalar syntax span.
Trait Implementations§
impl Copy for NodeKind
impl Eq for NodeKind
Source§impl Ord for NodeKind
impl Ord for NodeKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for NodeKind
impl PartialOrd for NodeKind
impl StructuralPartialEq for NodeKind
Auto Trait Implementations§
impl Freeze 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