pub struct Comment {
pub span: Span,
pub own_line_column: Option<u32>,
}Expand description
A # comment. span covers # through the end of the comment text.
Fields§
§span: Span§own_line_column: Option<u32>The 0-based column of the # when only whitespace precedes it on its
line (an “own-line” comment); None when it trails other content.
Columns count characters; a tab counts as one.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Comment
impl RefUnwindSafe for Comment
impl Send for Comment
impl Sync for Comment
impl Unpin for Comment
impl UnsafeUnpin for Comment
impl UnwindSafe for Comment
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