pub enum MappingEntryStyle {
Inherit,
Indent(usize),
}Expand description
Formatting controls for inserting a block mapping entry.
Variants§
Inherit
Reuse the target mapping indentation and the document line ending.
Indent(usize)
Insert with an explicit indentation width, in spaces.
Trait Implementations§
Source§impl Clone for MappingEntryStyle
impl Clone for MappingEntryStyle
Source§fn clone(&self) -> MappingEntryStyle
fn clone(&self) -> MappingEntryStyle
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 MappingEntryStyle
Source§impl Debug for MappingEntryStyle
impl Debug for MappingEntryStyle
Source§impl Default for MappingEntryStyle
impl Default for MappingEntryStyle
Source§fn default() -> MappingEntryStyle
fn default() -> MappingEntryStyle
Returns the “default value” for a type. Read more
impl Eq for MappingEntryStyle
Source§impl PartialEq for MappingEntryStyle
impl PartialEq for MappingEntryStyle
impl StructuralPartialEq for MappingEntryStyle
Auto Trait Implementations§
impl Freeze for MappingEntryStyle
impl RefUnwindSafe for MappingEntryStyle
impl Send for MappingEntryStyle
impl Sync for MappingEntryStyle
impl Unpin for MappingEntryStyle
impl UnsafeUnpin for MappingEntryStyle
impl UnwindSafe for MappingEntryStyle
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