pub trait WidthFunc {
// Required methods
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.