Trait freqfs::DirDeref

source ·
pub trait DirDeref {
    type Entry;

    // Required method
    fn as_dir(&self) -> &Dir<Self::Entry>;
}
Expand description

A helper trait to coerce container types like Arc into a borrowed Dir.

Required Associated Types§

source

type Entry

The type of Dir referenced

Required Methods§

source

fn as_dir(&self) -> &Dir<Self::Entry>

Borrow this instance as a Self::Entry

Implementations on Foreign Types§

source§

impl<'a, FE> DirDeref for Arc<DirReadGuard<'a, FE>>

§

type Entry = FE

source§

fn as_dir(&self) -> &Dir<FE>

source§

impl<FE> DirDeref for Arc<DirReadGuardOwned<FE>>

§

type Entry = FE

source§

fn as_dir(&self) -> &Dir<FE>

Implementors§

source§

impl<'a, FE> DirDeref for DirReadGuard<'a, FE>

§

type Entry = FE

source§

impl<'a, FE> DirDeref for DirWriteGuard<'a, FE>

§

type Entry = FE

source§

impl<FE> DirDeref for DirReadGuardOwned<FE>

§

type Entry = FE

source§

impl<FE> DirDeref for DirWriteGuardOwned<FE>

§

type Entry = FE