pub trait PathToStringExt {
    // Required method
    fn path_to_string(&self) -> Result<String>;
}
Expand description

Extension trait for getting a String from a Path.

Required Methods§

source

fn path_to_string(&self) -> Result<String>

Convert the path to a string if it is valid UTF-8, and return an error otherwise.

Implementations on Foreign Types§

source§

impl PathToStringExt for Path

source§

impl PathToStringExt for PathBuf

Implementors§