pub trait PathBufUtils {
// Required methods
fn is_safe(&self) -> bool;
fn from_win(path: &str) -> PathBuf;
fn try_to_win(&self) -> Result<String>;
fn from_unix(path: &str) -> PathBuf;
fn try_to_unix(&self) -> Result<String>;
fn to_safe_components(&self) -> Result<Vec<&str>>;
}Required Methods§
fn is_safe(&self) -> bool
fn from_win(path: &str) -> PathBuf
fn try_to_win(&self) -> Result<String>
fn from_unix(path: &str) -> PathBuf
fn try_to_unix(&self) -> Result<String>
fn to_safe_components(&self) -> Result<Vec<&str>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.