pub struct Node<'a> {
pub span: Span,
pub props: Props,
pub content: Content<'a>,
}Expand description
A YAML node: optional properties (anchor/tag) plus the content they apply to
(the spec’s node ::= properties? content production).
span covers the props through the content end, so every child span
(props, content, nested nodes) nests inside it.
Node positions hold Box<Node> so container children
(MappingItem / SequenceItem) stay small in their Vecs;
the rarely-present Props would otherwise inflate every element.
Fields§
§span: Span§props: Props§content: Content<'a>Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Node<'a>
impl<'a> !Send for Node<'a>
impl<'a> !Sync for Node<'a>
impl<'a> !UnwindSafe for Node<'a>
impl<'a> Freeze for Node<'a>
impl<'a> Unpin for Node<'a>
impl<'a> UnsafeUnpin for Node<'a>
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