pub enum CommentKind {
Line,
Block,
Doc,
}Expand description
The kind of a comment found in source code.
Distinguishes between single-line comments, block (multi-line) comments, and documentation comments.
Variants§
Trait Implementations§
Source§impl Clone for CommentKind
impl Clone for CommentKind
Source§fn clone(&self) -> CommentKind
fn clone(&self) -> CommentKind
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 CommentKind
impl Debug for CommentKind
Source§impl Default for CommentKind
impl Default for CommentKind
Source§fn default() -> CommentKind
fn default() -> CommentKind
Returns the “default value” for a type. Read more
Source§impl Hash for CommentKind
impl Hash for CommentKind
Source§impl PartialEq for CommentKind
impl PartialEq for CommentKind
impl Eq for CommentKind
impl StructuralPartialEq for CommentKind
Auto Trait Implementations§
impl Freeze for CommentKind
impl RefUnwindSafe for CommentKind
impl Send for CommentKind
impl Sync for CommentKind
impl Unpin for CommentKind
impl UnsafeUnpin for CommentKind
impl UnwindSafe for CommentKind
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