Skip to main content

AsPath

Trait AsPath 

Source
pub trait AsPath {
    // Required method
    fn as_path(&self) -> PathDyn<'_>;
}

Required Methods§

Source

fn as_path(&self) -> PathDyn<'_>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl AsPath for Path

Source§

fn as_path(&self) -> PathDyn<'_>

Source§

impl AsPath for PathBuf

Source§

fn as_path(&self) -> PathDyn<'_>

Source§

impl AsPath for UnixPath

Source§

fn as_path(&self) -> PathDyn<'_>

Source§

impl AsPath for UnixPathBuf

Source§

fn as_path(&self) -> PathDyn<'_>

Implementors§

Source§

impl AsPath for Components<'_>

Source§

impl AsPath for PathBufDyn

Source§

impl AsPath for PathCow<'_>

Source§

impl AsPath for PathDyn<'_>

Source§

impl<'p, P> AsPath for Loc<'p, P>
where P: LocAble<'p> + AsPath,

Source§

impl<T> AsPath for &LocBuf<T>
where T: LocBufAble + AsPath,

Source§

impl<T> AsPath for LocBuf<T>
where T: LocBufAble + AsPath,