pub struct Root<'a> {
pub span: Span,
pub children: Vec<'a, Document<'a>>,
pub comments: Vec<'a, Comment>,
}Expand description
The whole stream.
Fields§
§span: Span§children: Vec<'a, Document<'a>>§comments: Vec<'a, Comment>Every comment in the stream, in source order. Comments are not
attached to nodes; consumers place them positionally via spans
(the comment-cursor pattern).
No comment lies inside a block scalar’s content range (see the guarantee on BlockScalar).
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Root<'a>
impl<'a> !Send for Root<'a>
impl<'a> !Sync for Root<'a>
impl<'a> !UnwindSafe for Root<'a>
impl<'a> Freeze for Root<'a>
impl<'a> Unpin for Root<'a>
impl<'a> UnsafeUnpin for Root<'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