pub enum Trivia {
Whitespace(String),
LineComment(String),
PodComment(String),
Newline,
}Expand description
Trivia (whitespace/comments) attached to AST nodes. Trivia represents non-semantic tokens like comments and whitespace
Variants§
Whitespace(String)
Whitespace (spaces, tabs, etc.)
LineComment(String)
Single-line comment starting with #
PodComment(String)
POD documentation
Newline
Newline character(s)
Implementations§
Trait Implementations§
impl StructuralPartialEq for Trivia
Auto Trait Implementations§
impl Freeze for Trivia
impl RefUnwindSafe for Trivia
impl Send for Trivia
impl Sync for Trivia
impl Unpin for Trivia
impl UnsafeUnpin for Trivia
impl UnwindSafe for Trivia
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