pub struct Document<Loc = Span> {
pub root: Node<Loc>,
pub version: Option<(u8, u8)>,
pub tags: Vec<(String, String)>,
pub comments: Vec<String>,
}Expand description
A YAML document: a root node plus directive metadata.
Fields§
§root: Node<Loc>The root node of the document.
version: Option<(u8, u8)>YAML version from %YAML directive, if present.
Tag handle/prefix pairs from %TAG directives.
comments: Vec<String>Comments that appear at document level (before or between nodes).
Trait Implementations§
impl<Loc> StructuralPartialEq for Document<Loc>
Auto Trait Implementations§
impl<Loc> Freeze for Document<Loc>where
Loc: Freeze,
impl<Loc> RefUnwindSafe for Document<Loc>where
Loc: RefUnwindSafe,
impl<Loc> Send for Document<Loc>where
Loc: Send,
impl<Loc> Sync for Document<Loc>where
Loc: Sync,
impl<Loc> Unpin for Document<Loc>where
Loc: Unpin,
impl<Loc> UnsafeUnpin for Document<Loc>where
Loc: UnsafeUnpin,
impl<Loc> UnwindSafe for Document<Loc>where
Loc: UnwindSafe,
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