#[non_exhaustive]pub enum CommentKind {
Line,
Paragraph,
}Expand description
The syntactic form a Comment originated from.
A [comment]-styled -- block is represented as a
DelimitedBlockType::DelimitedComment (distinguished from a //// block
by its retained comment style), so it is not covered here.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for CommentKind
impl Clone for CommentKind
impl Copy for CommentKind
Source§impl Debug for CommentKind
impl Debug for CommentKind
Source§impl Default for CommentKind
impl Default for CommentKind
impl Eq for CommentKind
Source§impl PartialEq for CommentKind
impl PartialEq for CommentKind
Source§impl Serialize for CommentKind
impl Serialize 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