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 · 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 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 Copy for BlankInBlockCommentPolicy
impl Eq for BlankInBlockCommentPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.