pub struct SchemaComment { /* private fields */ }Expand description
A comment retained with its exact source location.
Implementations§
Source§impl SchemaComment
impl SchemaComment
Sourcepub const fn placement(&self) -> CommentPlacement
pub const fn placement(&self) -> CommentPlacement
Returns the parser-reported placement.
Sourcepub const fn span(&self) -> &SourceSpan
pub const fn span(&self) -> &SourceSpan
Returns the exact source span.
Trait Implementations§
Source§impl Clone for SchemaComment
impl Clone for SchemaComment
Source§fn clone(&self) -> SchemaComment
fn clone(&self) -> SchemaComment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SchemaComment
impl Debug for SchemaComment
impl Eq for SchemaComment
Source§impl PartialEq for SchemaComment
impl PartialEq for SchemaComment
impl StructuralPartialEq for SchemaComment
Auto Trait Implementations§
impl Freeze for SchemaComment
impl RefUnwindSafe for SchemaComment
impl Send for SchemaComment
impl Sync for SchemaComment
impl Unpin for SchemaComment
impl UnsafeUnpin for SchemaComment
impl UnwindSafe for SchemaComment
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