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§