UnicodeWidthStr

Trait UnicodeWidthStr 

Source
pub trait UnicodeWidthStr {
    // Required method
    fn width(&self) -> usize;
}
Expand description

Trait for calculating display width of strings

Required Methods§

Source

fn width(&self) -> usize

Returns the display width of the string

Implementations on Foreign Types§

Source§

impl UnicodeWidthStr for &str

Source§

fn width(&self) -> usize

Source§

impl UnicodeWidthStr for str

Source§

fn width(&self) -> usize

Implementors§