pub enum BlockNewlineGaps {
Never,
Preserve,
}
Expand description
If blocks should be allowed to have leading and trailing newline gaps.
Variants§
Never
Never allow leading or trailing newline gaps
Preserve
Preserve both leading and trailing newline gaps if present in input
Trait Implementations§
Source§impl Clone for BlockNewlineGaps
impl Clone for BlockNewlineGaps
Source§fn clone(&self) -> BlockNewlineGaps
fn clone(&self) -> BlockNewlineGaps
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 BlockNewlineGaps
impl Debug for BlockNewlineGaps
Source§impl Default for BlockNewlineGaps
impl Default for BlockNewlineGaps
Source§fn default() -> BlockNewlineGaps
fn default() -> BlockNewlineGaps
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BlockNewlineGaps
impl<'de> Deserialize<'de> for BlockNewlineGaps
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
Source§impl PartialEq for BlockNewlineGaps
impl PartialEq for BlockNewlineGaps
impl Copy for BlockNewlineGaps
impl Eq for BlockNewlineGaps
impl StructuralPartialEq for BlockNewlineGaps
Auto Trait Implementations§
impl Freeze for BlockNewlineGaps
impl RefUnwindSafe for BlockNewlineGaps
impl Send for BlockNewlineGaps
impl Sync for BlockNewlineGaps
impl Unpin for BlockNewlineGaps
impl UnwindSafe for BlockNewlineGaps
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