pub struct Comment {
pub kind: CommentKind,
pub span: Span,
}Expand description
A comment the lexer skipped.
Fields§
§kind: CommentKind§span: SpanFrom // to the end of its line, without the line break or a \r
before it; or from /* through */.
Trait Implementations§
impl Copy for Comment
impl Eq for Comment
impl StructuralPartialEq for Comment
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