pub enum BlankLinePolicy {
Collapse,
Preserve,
}Expand description
How the formatter treats runs of blank lines between elements / fields.
Variants§
Collapse
Collapse any run of blank lines to at most one (the default). A blank line the user inserted between two fields is kept (a single blank), but a run of several is reduced to one.
Preserve
Preserve the original number of blank lines between elements verbatim.
Trait Implementations§
Source§impl Clone for BlankLinePolicy
impl Clone for BlankLinePolicy
Source§fn clone(&self) -> BlankLinePolicy
fn clone(&self) -> BlankLinePolicy
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 BlankLinePolicy
Source§impl Debug for BlankLinePolicy
impl Debug for BlankLinePolicy
Source§impl Default for BlankLinePolicy
impl Default for BlankLinePolicy
impl Eq for BlankLinePolicy
Source§impl Hash for BlankLinePolicy
impl Hash for BlankLinePolicy
Source§impl PartialEq for BlankLinePolicy
impl PartialEq for BlankLinePolicy
impl StructuralPartialEq for BlankLinePolicy
Auto Trait Implementations§
impl Freeze for BlankLinePolicy
impl RefUnwindSafe for BlankLinePolicy
impl Send for BlankLinePolicy
impl Sync for BlankLinePolicy
impl Unpin for BlankLinePolicy
impl UnsafeUnpin for BlankLinePolicy
impl UnwindSafe for BlankLinePolicy
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