pub trait PathExt {
    // Required methods
    fn file_name_str(&self) -> Option<&str>;
    fn directory_name_str(&self) -> Option<&str>;
    fn get_relative_path_to<P>(&self, path: P, exclude_file: bool) -> String
       where P: AsRef<Path>;
}

Required Methods§

source

fn file_name_str(&self) -> Option<&str>

source

fn directory_name_str(&self) -> Option<&str>

source

fn get_relative_path_to<P>(&self, path: P, exclude_file: bool) -> Stringwhere P: AsRef<Path>,

Implementations on Foreign Types§

source§

impl PathExt for Path

source§

fn file_name_str(&self) -> Option<&str>

source§

fn directory_name_str(&self) -> Option<&str>

source§

fn get_relative_path_to<P>(&self, path: P, exclude_file: bool) -> Stringwhere P: AsRef<Path>,

Implementors§