#[non_exhaustive]pub enum InlineComments {
Whitespace,
Space,
AnyHash,
Python,
None,
}Expand description
Recognition of inline comments (whole-statement comments are always enabled).
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.
Whitespace
A hash preceded by configured whitespace.
Space
A hash preceded by a literal ASCII space within the value/header tail.
AnyHash
Any hash starts a comment.
Python
Whitespace-delimited values, but any hash after a bare key (Python).
None
Hashes in values are literal.
Trait Implementations§
Source§impl Clone for InlineComments
impl Clone for InlineComments
impl Copy for InlineComments
Source§impl Debug for InlineComments
impl Debug for InlineComments
impl Eq for InlineComments
Source§impl Hash for InlineComments
impl Hash for InlineComments
Source§impl PartialEq for InlineComments
impl PartialEq for InlineComments
impl StructuralPartialEq for InlineComments
Auto Trait Implementations§
impl Freeze for InlineComments
impl RefUnwindSafe for InlineComments
impl Send for InlineComments
impl Sync for InlineComments
impl Unpin for InlineComments
impl UnsafeUnpin for InlineComments
impl UnwindSafe for InlineComments
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