Trait array_tool::string::Justify [] [src]

pub trait Justify {
    fn justify_line(&self, width: usize) -> String;
}

Justify - expand line to given width.

Required Methods

Example

use array_tool::string::Justify;

"asd asdf asd".justify_line(14);

Output

"asd  asdf  asd"

Implementations on Foreign Types

impl Justify for str
[src]

[src]

Implementors