pub trait WidthFunc {
fn width(&self, text: &str) -> usize;
fn width_multiline(&self, text: &str) -> usize;
}
Expand description
A width function.
Required Methods
sourcefn width_multiline(&self, text: &str) -> usize
fn width_multiline(&self, text: &str) -> usize
Calculates a width of a multiline string.