StrAdditions

Trait StrAdditions 

Source
pub trait StrAdditions {
    // Required methods
    fn with(&self, append: &str) -> String;
    fn pad_left_to(&self, len: usize) -> Cow<'_, str>;
    fn to_created_dir(&self) -> Result<Utf8PathBuf>;
}

Required Methods§

Source

fn with(&self, append: &str) -> String

Source

fn pad_left_to(&self, len: usize) -> Cow<'_, str>

Source

fn to_created_dir(&self) -> Result<Utf8PathBuf>

returns the string as a canonical path (creates the dir if necessary)

Implementations on Foreign Types§

Source§

impl StrAdditions for str

Source§

fn with(&self, append: &str) -> String

Source§

fn pad_left_to(&self, len: usize) -> Cow<'_, str>

Source§

fn to_created_dir(&self) -> Result<Utf8PathBuf>

Source§

impl StrAdditions for String

Source§

fn with(&self, append: &str) -> String

Source§

fn pad_left_to(&self, len: usize) -> Cow<'_, str>

Source§

fn to_created_dir(&self) -> Result<Utf8PathBuf>

Implementors§