pub enum Indentation<'a> {
TwoSpace,
FourSpace,
Tab,
Custom(&'a str),
}
Expand description
Set the indentation used for the formatting.
Note: It is not recommended to set indentation to anything oder than some spaces or some tabs, but nothing is stopping you from doing that.
Variants§
TwoSpace
Fast path for two spaces
FourSpace
Fast path for four spaces
Tab
Fast path for tab
Custom(&'a str)
Use a custom indentation String
Trait Implementations§
Source§impl<'a> Clone for Indentation<'a>
impl<'a> Clone for Indentation<'a>
Source§fn clone(&self) -> Indentation<'a>
fn clone(&self) -> Indentation<'a>
Returns a copy 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<'a> Debug for Indentation<'a>
impl<'a> Debug for Indentation<'a>
Source§impl Default for Indentation<'_>
impl Default for Indentation<'_>
Source§impl<'a> Hash for Indentation<'a>
impl<'a> Hash for Indentation<'a>
Source§impl<'a> PartialEq for Indentation<'a>
impl<'a> PartialEq for Indentation<'a>
impl<'a> Copy for Indentation<'a>
impl<'a> Eq for Indentation<'a>
impl<'a> StructuralPartialEq for Indentation<'a>
Auto Trait Implementations§
impl<'a> Freeze for Indentation<'a>
impl<'a> RefUnwindSafe for Indentation<'a>
impl<'a> Send for Indentation<'a>
impl<'a> Sync for Indentation<'a>
impl<'a> Unpin for Indentation<'a>
impl<'a> UnwindSafe for Indentation<'a>
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