pub trait Unstyle: Display {
// Provided methods
fn unstyle(&self) -> String { ... }
fn nb_of_lines(&self) -> usize { ... }
}Expand description
Trait to implement when a string length differs from its unstyled value length (ASCII escapes for instance)
Provided Methods§
Sourcefn nb_of_lines(&self) -> usize
fn nb_of_lines(&self) -> usize
Returns the number of lines in the string