pub struct Comment {
pub raw: String,
pub kind: CommentKind,
pub byte_range: Range<usize>,
pub line: usize,
}Expand description
A single extracted comment.
Fields§
§raw: StringThe raw comment slice, including delimiters (// foo, /* foo */).
kind: CommentKindClassification of the comment.
byte_range: Range<usize>Byte offsets within the source file.
line: usize1-based line number of the comment’s start.
Implementations§
Trait Implementations§
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