Struct jsonc_parser::ast::CommentBlock
source · pub struct CommentBlock<'a> {
pub range: Range,
pub text: &'a str,
}
Expand description
Represents a comment block (ex. /* my comment */
).
Fields§
§range: Range
§text: &'a str
Trait Implementations§
source§impl<'a> Clone for CommentBlock<'a>
impl<'a> Clone for CommentBlock<'a>
source§fn clone(&self) -> CommentBlock<'a>
fn clone(&self) -> CommentBlock<'a>
Returns a copy 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<'a> Debug for CommentBlock<'a>
impl<'a> Debug for CommentBlock<'a>
source§impl<'a> PartialEq<CommentBlock<'a>> for CommentBlock<'a>
impl<'a> PartialEq<CommentBlock<'a>> for CommentBlock<'a>
source§fn eq(&self, other: &CommentBlock<'a>) -> bool
fn eq(&self, other: &CommentBlock<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> Ranged for CommentBlock<'a>
impl<'a> Ranged for CommentBlock<'a>
impl<'a> StructuralPartialEq for CommentBlock<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for CommentBlock<'a>
impl<'a> Send for CommentBlock<'a>
impl<'a> Sync for CommentBlock<'a>
impl<'a> Unpin for CommentBlock<'a>
impl<'a> UnwindSafe for CommentBlock<'a>
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