[][src]Trait multiprint::Decorate

pub trait Decorate: ToString {
    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; }

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

fn underline(&self, underline_character: char) -> String

Render the string with an underline on the next line using the specific character

fn overline(&self, overline_character: char) -> String

Render the string with an overline on the previous line using the specific character

fn outline(&self, overline_character: char, underline_character: char) -> String

Render the string with both an over- and under-line on the previous and following lines using the specific characters

fn border(&self, line_character: char, side_character: char) -> String

Render the string with a complete border around it

Loading content...

Implementations on Foreign Types

impl Decorate for String[src]

Loading content...

Implementors

Loading content...