pub struct Comment<'src> {
pub kind: CommentKind,
pub text: &'src str,
pub span: Span,
}Expand description
A comment found in the source file.
Fields§
§kind: CommentKind§text: &'src strRaw text of the comment including its delimiters (e.g. // foo, /* bar */, /** baz */).
span: SpanTrait Implementations§
Auto Trait Implementations§
impl<'src> Freeze for Comment<'src>
impl<'src> RefUnwindSafe for Comment<'src>
impl<'src> Send for Comment<'src>
impl<'src> Sync for Comment<'src>
impl<'src> Unpin for Comment<'src>
impl<'src> UnsafeUnpin for Comment<'src>
impl<'src> UnwindSafe for Comment<'src>
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