pub trait WidthFunc {
    fn width(&self, text: &str) -> usize;
    fn width_multiline(&self, text: &str) -> usize;
}
Expand description

A width function.

Required Methods

Calculates a width of a string.

Calculates a width of a multiline string.

Implementations on Foreign Types

Implementors