pub enum Item {
Ws(String),
LineComment(String),
BlockComment(String),
DatumComment(String),
Node(Node),
}Expand description
One element of a list body or the top level. Whitespace and comments are items like any other, so emitting a document is pure concatenation.
Variants§
Ws(String)
Exact run of whitespace as it appeared, e.g. “ \n\t“.
LineComment(String)
“;…” up to but excluding the newline (the newline is Ws).
BlockComment(String)
“#|…|#” or “#!…!#” including delimiters; nesting preserved verbatim.
DatumComment(String)
“#;” plus the complete commented-out datum, verbatim.
Node(Node)
Trait Implementations§
impl Eq for Item
impl StructuralPartialEq for Item
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnsafeUnpin for Item
impl UnwindSafe for Item
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