pub struct Format {
pub indent: i32,
}Expand description
Formatting options
Fields§
§indent: i32The number of spaces to indent per level. -1 to use tabs
Implementations§
Source§impl Format
impl Format
Sourcepub fn set_indent(self, indent: i32) -> Self
pub fn set_indent(self, indent: i32) -> Self
Set indent
Sourcepub fn indent_tab() -> Self
pub fn indent_tab() -> Self
Set indent to tabs
Sourcepub fn set_indent_tab(self) -> Self
pub fn set_indent_tab(self) -> Self
Set indent to tabs
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
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