Trait Width
zero_copy_pads
pub trait Width: Display { fn width(&self) -> usize; }
Value that has width.
fn width(&self) -> usize
Get width of the value.
impl Width for str
impl Width for &str
impl Width for String
impl<X: Width + Sized> Width for &X
impl<Inner: AsRef<str>> Width for CharCount<Inner>
impl<Inner: AsRef<str>> Width for Len<Inner>
impl<Inner: AsRef<str>> Width for UnicodeWidth<Inner>
impl<Inner: AsRef<str>> Width for UnicodeWidthCjk<Inner>