pub struct Comment {
pub text: String,
pub line: usize,
pub is_trailing: bool,
}Expand description
A comment extracted from source code.
Fields§
§text: StringThe comment text (without the leading //)
line: usizeLine number (1-indexed)
is_trailing: boolWhether this is a trailing comment (on same line as code)
Trait Implementations§
impl StructuralPartialEq for Comment
Auto Trait Implementations§
impl Forget for Comment
impl Freeze for Comment
impl Move for Comment
impl RefUnwindSafe for Comment
impl Send for Commentwhere
RawVecInner: Send,
impl Sync for Commentwhere
RawVecInner: Sync,
impl Unpin for Comment
impl UnsafeUnpin for Comment
impl UnwindSafe for Commentwhere
RawVecInner: UnwindSafe,
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