pub struct Trivia {
pub leading: Vec<String>,
pub trailing: Option<String>,
pub blank_before: bool,
}Expand description
Comments attached to a statement: full-line comments above it, plus an optional same-line trailing comment.
Fields§
§leading: Vec<String>§trailing: Option<String>§blank_before: boolNumber of blank lines before this statement (capped at 1 by fmt).
Trait Implementations§
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