pub trait FromPathUnchecked {
// Required method
fn from_path_unchecked(path: impl Into<PathBuf>) -> Self;
}Expand description
Implemented for path types. Use from_path_unchecked() to construct a strongly-typed
path directly from a PathBuf.
Required Methods§
Sourcefn from_path_unchecked(path: impl Into<PathBuf>) -> Self
fn from_path_unchecked(path: impl Into<PathBuf>) -> Self
The responsibility is on the caller to verify that the path is valid for this directory structure node.
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.