Skip to main content

UnicodeWidthStr

Trait UnicodeWidthStr 

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

Required Methods§

Source

fn width(&self) -> usize

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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§