pub struct TabSize(pub usize);
Expand description
Set a tab size.
The size is used in order to calculate width correctly.
Default value is 4 (basically 1 ‘\t’ equals 4 spaces).
IMPORTANT: The tab character might be not present in output, it might be replaced by spaces.
Tuple Fields§
§0: usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TabSize
impl RefUnwindSafe for TabSize
impl Send for TabSize
impl Sync for TabSize
impl Unpin for TabSize
impl UnwindSafe for TabSize
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