nu_path::form

Trait IsAbsolute

Source
pub trait IsAbsolute: PathForm { }
Expand description

A marker trait for PathForms that are absolute paths. This includes only the Absolute and Canonical path forms.

Only PathForms that implement this trait can be easily converted to std::path::Path or std::path::PathBuf. This is to encourage/force other Nushell crates to account for the emulated current working directory, instead of using the std::env::current_dir.

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.

Implementors§