pub struct Comment<'s> {
pub content: &'s str,
pub kind: CommentKind,
pub span: Span,
}Fields§
§content: &'s str§kind: CommentKind§span: SpanTrait Implementations§
Source§impl<'s> SpanIgnoredEq for Comment<'s>
impl<'s> SpanIgnoredEq for Comment<'s>
Source§fn span_ignored_eq(&self, other: &Self) -> bool
fn span_ignored_eq(&self, other: &Self) -> bool
Compare equality of two AST nodes without respecting their spans.
impl<'s> StructuralPartialEq for Comment<'s>
Auto Trait Implementations§
impl<'s> Freeze for Comment<'s>
impl<'s> RefUnwindSafe for Comment<'s>
impl<'s> Send for Comment<'s>
impl<'s> Sync for Comment<'s>
impl<'s> Unpin for Comment<'s>
impl<'s> UnwindSafe for Comment<'s>
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