pub struct DocComment {
pub text: String,
pub kind: DocKind,
pub span: Span,
}Expand description
A Haddock-style documentation comment.
Fields§
§text: StringThe raw text content of the documentation.
kind: DocKindThe kind of documentation (preceding or trailing).
span: SpanThe span of the comment in source.
Implementations§
Trait Implementations§
Source§impl Clone for DocComment
impl Clone for DocComment
Source§fn clone(&self) -> DocComment
fn clone(&self) -> DocComment
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 moreAuto Trait Implementations§
impl Freeze for DocComment
impl RefUnwindSafe for DocComment
impl Send for DocComment
impl Sync for DocComment
impl Unpin for DocComment
impl UnsafeUnpin for DocComment
impl UnwindSafe for DocComment
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