#[repr(u8)]pub enum CommentSyntax {
Hash = 0,
DoubleSlash = 1,
Semicolon = 2,
Xml = 3,
}Expand description
Comment delimiter for plain text formats that support comments.
Variants§
Implementations§
Source§impl CommentSyntax
impl CommentSyntax
Sourcepub(crate) fn uncomment(self, line: &str) -> Option<&str>
pub(crate) fn uncomment(self, line: &str) -> Option<&str>
The text of line when it is a comment of one line in this syntax.
Sourceconst fn line_delimiter(self) -> Option<&'static str>
const fn line_delimiter(self) -> Option<&'static str>
The delimiter that starts each line, or None for the block syntax.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CommentSyntax
Source§impl Debug for CommentSyntax
impl Debug for CommentSyntax
impl Eq for CommentSyntax
Source§impl<'ʄ> Facet<'ʄ> for CommentSyntax
impl<'ʄ> Facet<'ʄ> for CommentSyntax
Source§impl PartialEq for CommentSyntax
impl PartialEq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.