pub struct FmtWidth;Expand description
Utilities for computing display widths.
Implementations§
Source§impl FmtWidth
impl FmtWidth
Sourcepub fn decimal_width(n: usize) -> usize
pub fn decimal_width(n: usize) -> usize
Returns the display width of a usize in decimal.
Sourcepub fn pad_right(s: &str, width: usize) -> String
pub fn pad_right(s: &str, width: usize) -> String
Pads s on the right with spaces to width total chars.
Auto Trait Implementations§
impl Freeze for FmtWidth
impl RefUnwindSafe for FmtWidth
impl Send for FmtWidth
impl Sync for FmtWidth
impl Unpin for FmtWidth
impl UnsafeUnpin for FmtWidth
impl UnwindSafe for FmtWidth
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