pub enum CommentSyntax {
CStyle,
CStyleNested,
Hash,
Sql,
Xml,
Php,
}Expand description
Comment syntax variants for different programming languages.
Variants§
CStyle
C-style comments: // line comments and /* */ block comments
CStyleNested
C-style comments with nesting support (Rust, Swift, Scala): // and /* */ with nesting
Hash
Hash comments only: # line comments (Python, Ruby)
Sql
SQL comments: -- line comments and /* */ block comments
Xml
XML/HTML comments: <!-- --> block comments only
Php
PHP comments: //, # line comments and /* */ block comments
Trait Implementations§
Source§impl Clone for CommentSyntax
impl Clone for CommentSyntax
Source§fn clone(&self) -> CommentSyntax
fn clone(&self) -> CommentSyntax
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 CommentSyntax
impl Debug for CommentSyntax
Source§impl PartialEq for CommentSyntax
impl PartialEq for CommentSyntax
impl Copy for CommentSyntax
impl Eq for CommentSyntax
impl StructuralPartialEq for CommentSyntax
Auto Trait Implementations§
impl Freeze for CommentSyntax
impl RefUnwindSafe for CommentSyntax
impl Send for CommentSyntax
impl Sync for CommentSyntax
impl Unpin for CommentSyntax
impl UnsafeUnpin for CommentSyntax
impl UnwindSafe for CommentSyntax
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