pub enum TriviaBlankLineSpacingPolicy {
RemoveTrailingBlanks,
Always,
}Expand description
The policy for Trivia::BlankLine line spacing.
Blank lines before comments and between comments are always permitted.
Variants§
RemoveTrailingBlanks
Blank lines are allowed before and between comments, but not after.
i.e. a comment, then a blank line, then code, would have the blank removed.
Always
Blank lines are always allowed.
Trait Implementations§
Source§impl Clone for TriviaBlankLineSpacingPolicy
impl Clone for TriviaBlankLineSpacingPolicy
Source§fn clone(&self) -> TriviaBlankLineSpacingPolicy
fn clone(&self) -> TriviaBlankLineSpacingPolicy
Returns a copy 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 TriviaBlankLineSpacingPolicy
impl Debug for TriviaBlankLineSpacingPolicy
Source§impl Default for TriviaBlankLineSpacingPolicy
impl Default for TriviaBlankLineSpacingPolicy
Source§fn default() -> TriviaBlankLineSpacingPolicy
fn default() -> TriviaBlankLineSpacingPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for TriviaBlankLineSpacingPolicy
impl PartialEq for TriviaBlankLineSpacingPolicy
Source§fn eq(&self, other: &TriviaBlankLineSpacingPolicy) -> bool
fn eq(&self, other: &TriviaBlankLineSpacingPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TriviaBlankLineSpacingPolicy
impl Eq for TriviaBlankLineSpacingPolicy
impl StructuralPartialEq for TriviaBlankLineSpacingPolicy
Auto Trait Implementations§
impl Freeze for TriviaBlankLineSpacingPolicy
impl RefUnwindSafe for TriviaBlankLineSpacingPolicy
impl Send for TriviaBlankLineSpacingPolicy
impl Sync for TriviaBlankLineSpacingPolicy
impl Unpin for TriviaBlankLineSpacingPolicy
impl UnwindSafe for TriviaBlankLineSpacingPolicy
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more