array_tool::string

Trait Justify

Source
pub trait Justify {
    // Required method
    fn justify_line(&self, width: usize) -> String;
}
Expand description

Justify - expand line to given width.

Required Methods§

Source

fn justify_line(&self, width: usize) -> String

§Example
use array_tool::string::Justify;

"asd asdf asd".justify_line(14);
§Output
"asd  asdf  asd"

Implementations on Foreign Types§

Source§

impl Justify for str

Source§

fn justify_line(&self, width: usize) -> String

Implementors§