Skip to main content

NormalizePath

Trait NormalizePath 

Source
pub trait NormalizePath {
    // Required method
    fn normalize(&self) -> Result<PathBuf>;
}
Expand description

Normalizes path, dereferencing relative references . and .. and converting path separators to current platform separators. (detects platform natively or via NodeJS if operating in WASM32 environment)

Required Methods§

Source

fn normalize(&self) -> Result<PathBuf>

Returns the normalized form of this path, resolving . and .. references and converting separators to the current platform.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl NormalizePath for Path

Source§

impl NormalizePath for PathBuf

Implementors§