Trait SubDirs

Source
pub trait SubDirs: ToPath {
    type Target;

    // Required method
    fn append_subdir_str(
        self: Arc<Self>,
        file_name: &str,
    ) -> Result<Self::Target>;

    // Provided method
    fn sub_dirs(
        self: &Arc<Self>,
    ) -> Result<impl Iterator<Item = Result<Self::Target>>> { ... }
}

Required Associated Types§

Required Methods§

Source

fn append_subdir_str(self: Arc<Self>, file_name: &str) -> Result<Self::Target>

Provided Methods§

Source

fn sub_dirs( self: &Arc<Self>, ) -> Result<impl Iterator<Item = Result<Self::Target>>>

Skips non-directory entries, but requires all directory entries to be convertible to T.

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§