pub enum BlankInBlockCommentPolicy {
CountAsComment,
CountAsBlank,
}Expand description
IEEE 1045-1992: how blank lines that fall inside a block comment are classified.
The standard aligns with counting them as comment lines (they are part of the comment
body). The CountAsBlank variant preserves the legacy behaviour if required.
Variants§
CountAsComment
Blank lines inside /* */ (or equivalent) blocks count as comment lines — IEEE aligned.
CountAsBlank
Blank lines inside block comments count as blank lines.
Trait Implementations§
Source§impl Clone for BlankInBlockCommentPolicy
impl Clone for BlankInBlockCommentPolicy
Source§fn clone(&self) -> BlankInBlockCommentPolicy
fn clone(&self) -> BlankInBlockCommentPolicy
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 BlankInBlockCommentPolicy
Source§impl Debug for BlankInBlockCommentPolicy
impl Debug for BlankInBlockCommentPolicy
Source§impl Default for BlankInBlockCommentPolicy
impl Default for BlankInBlockCommentPolicy
Source§fn default() -> BlankInBlockCommentPolicy
fn default() -> BlankInBlockCommentPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BlankInBlockCommentPolicy
impl<'de> Deserialize<'de> for BlankInBlockCommentPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BlankInBlockCommentPolicy
Source§impl PartialEq for BlankInBlockCommentPolicy
impl PartialEq for BlankInBlockCommentPolicy
Source§fn eq(&self, other: &BlankInBlockCommentPolicy) -> bool
fn eq(&self, other: &BlankInBlockCommentPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BlankInBlockCommentPolicy
Auto Trait Implementations§
impl Freeze for BlankInBlockCommentPolicy
impl RefUnwindSafe for BlankInBlockCommentPolicy
impl Send for BlankInBlockCommentPolicy
impl Sync for BlankInBlockCommentPolicy
impl Unpin for BlankInBlockCommentPolicy
impl UnsafeUnpin for BlankInBlockCommentPolicy
impl UnwindSafe for BlankInBlockCommentPolicy
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