pub struct CommentSpan { /* private fields */ }Expand description
Lightweight comment descriptor without a source text borrow.
Returned by super::AnyParsedStatement::comment_spans.
Use this when you only need position and kind, not the text.
Implementations§
Trait Implementations§
Source§impl Clone for CommentSpan
impl Clone for CommentSpan
Source§fn clone(&self) -> CommentSpan
fn clone(&self) -> CommentSpan
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommentSpan
impl Debug for CommentSpan
impl Copy for CommentSpan
Auto Trait Implementations§
impl Freeze for CommentSpan
impl RefUnwindSafe for CommentSpan
impl Send for CommentSpan
impl Sync for CommentSpan
impl Unpin for CommentSpan
impl UnsafeUnpin for CommentSpan
impl UnwindSafe for CommentSpan
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