pub trait Decorate: ToString {
// Required methods
fn underline(&self, underline_character: char) -> String;
fn overline(&self, overline_character: char) -> String;
fn outline(
&self,
overline_character: char,
underline_character: char,
) -> String;
fn border(&self, line_character: char, side_character: char) -> String;
}Expand description
The Decorate trait exposes methods for decorating text with underlines, overlines and outlines
By default, the Decorate trait methods are automatically implemented for the String type
Required Methods§
Sourcefn underline(&self, underline_character: char) -> String
fn underline(&self, underline_character: char) -> String
Render the string with an underline on the next line using the specific character
Sourcefn overline(&self, overline_character: char) -> String
fn overline(&self, overline_character: char) -> String
Render the string with an overline on the previous line using the specific character