pub enum Indentation {
FieldNameLength,
Spaces(u32),
}Expand description
The indentation to use when writing a YAML file.
Variants§
FieldNameLength
Use the same indentation as the original line for the value.
Spaces(u32)
The number of spaces to use for indentation.
Trait Implementations§
Source§impl Clone for Indentation
impl Clone for Indentation
Source§fn clone(&self) -> Indentation
fn clone(&self) -> Indentation
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 Indentation
Source§impl Debug for Indentation
impl Debug for Indentation
Source§impl Default for Indentation
impl Default for Indentation
impl Eq for Indentation
Source§impl PartialEq for Indentation
impl PartialEq for Indentation
Source§fn eq(&self, other: &Indentation) -> bool
fn eq(&self, other: &Indentation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Indentation
Auto Trait Implementations§
impl Freeze for Indentation
impl RefUnwindSafe for Indentation
impl Send for Indentation
impl Sync for Indentation
impl Unpin for Indentation
impl UnsafeUnpin for Indentation
impl UnwindSafe for Indentation
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