pub trait PathConvert {
// Required methods
fn to_cross_path(&self) -> PathResult<CrossPath>;
fn to_windows_path(&self) -> PathResult<String>;
fn to_unix_path(&self) -> PathResult<String>;
}Expand description
Path conversion trait
Extension trait to add conversion methods to string and path types
Required Methods§
Sourcefn to_cross_path(&self) -> PathResult<CrossPath>
fn to_cross_path(&self) -> PathResult<CrossPath>
Sourcefn to_windows_path(&self) -> PathResult<String>
fn to_windows_path(&self) -> PathResult<String>
Sourcefn to_unix_path(&self) -> PathResult<String>
fn to_unix_path(&self) -> PathResult<String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".