Trait ToNormalPathComponents

Source
pub trait ToNormalPathComponents {
    // Required method
    fn to_normal_path_components(
        &self,
    ) -> impl Iterator<Item = Result<&OsStr, Error>>;
}
Expand description

Obtain an iterator over OsStr-components which are normal, none-relative and not absolute.

Required Methods§

Source

fn to_normal_path_components( &self, ) -> impl Iterator<Item = Result<&OsStr, Error>>

Return an iterator over the normal components of a path, without the separator.

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.

Implementations on Foreign Types§

Source§

impl ToNormalPathComponents for &str

Source§

impl ToNormalPathComponents for &Path

Source§

impl ToNormalPathComponents for &BStr

Source§

impl ToNormalPathComponents for &BString

Source§

impl ToNormalPathComponents for PathBuf

Implementors§