pub enum WrapIndent {
None,
SameAsLineIndent,
FixedCells(usize),
}Expand description
Wrapped-line indentation policy.
Variants§
None
No indentation for wrapped continuations.
SameAsLineIndent
Indent wrapped continuations by the width (in cells) of the logical line’s leading whitespace prefix (spaces + tabs).
FixedCells(usize)
Indent wrapped continuations by a fixed number of cells.
Trait Implementations§
Source§impl Clone for WrapIndent
impl Clone for WrapIndent
Source§fn clone(&self) -> WrapIndent
fn clone(&self) -> WrapIndent
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 WrapIndent
Source§impl Debug for WrapIndent
impl Debug for WrapIndent
Source§impl Default for WrapIndent
impl Default for WrapIndent
Source§fn default() -> WrapIndent
fn default() -> WrapIndent
Returns the “default value” for a type. Read more
impl Eq for WrapIndent
Source§impl PartialEq for WrapIndent
impl PartialEq for WrapIndent
Source§fn eq(&self, other: &WrapIndent) -> bool
fn eq(&self, other: &WrapIndent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WrapIndent
Auto Trait Implementations§
impl Freeze for WrapIndent
impl RefUnwindSafe for WrapIndent
impl Send for WrapIndent
impl Sync for WrapIndent
impl Unpin for WrapIndent
impl UnsafeUnpin for WrapIndent
impl UnwindSafe for WrapIndent
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