pub struct CommentInfo {
pub text: String,
pub kind: CommentKind,
pub span: Span,
pub associated_node: Option<String>,
}Expand description
A comment extracted from source code.
Fields§
§text: String§kind: CommentKind§span: Span§associated_node: Option<String>Trait Implementations§
Source§impl Clone for CommentInfo
impl Clone for CommentInfo
Source§fn clone(&self) -> CommentInfo
fn clone(&self) -> CommentInfo
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 CommentInfo
impl Debug for CommentInfo
Source§impl Default for CommentInfo
impl Default for CommentInfo
Source§fn default() -> CommentInfo
fn default() -> CommentInfo
Returns the “default value” for a type. Read more
Source§impl Hash for CommentInfo
impl Hash for CommentInfo
Source§impl PartialEq for CommentInfo
impl PartialEq for CommentInfo
impl Eq for CommentInfo
impl StructuralPartialEq for CommentInfo
Auto Trait Implementations§
impl Freeze for CommentInfo
impl RefUnwindSafe for CommentInfo
impl Send for CommentInfo
impl Sync for CommentInfo
impl Unpin for CommentInfo
impl UnsafeUnpin for CommentInfo
impl UnwindSafe for CommentInfo
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