pub enum IndentMode {
Spaces(usize),
Tabs(usize),
}Expand description
Indentation mode: spaces vs tabs.
Variants§
Implementations§
Source§impl IndentMode
impl IndentMode
pub fn unit_width(&self) -> usize
pub fn indent_str(&self, level: usize) -> String
Trait Implementations§
Source§impl Clone for IndentMode
impl Clone for IndentMode
Source§fn clone(&self) -> IndentMode
fn clone(&self) -> IndentMode
Returns a duplicate 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 Debug for IndentMode
impl Debug for IndentMode
Source§impl PartialEq for IndentMode
impl PartialEq for IndentMode
impl Copy for IndentMode
impl Eq for IndentMode
impl StructuralPartialEq for IndentMode
Auto Trait Implementations§
impl Freeze for IndentMode
impl RefUnwindSafe for IndentMode
impl Send for IndentMode
impl Sync for IndentMode
impl Unpin for IndentMode
impl UnsafeUnpin for IndentMode
impl UnwindSafe for IndentMode
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