Skip to main content

PathSource

Trait PathSource 

Source
pub trait PathSource {
    // Required methods
    fn list(&self, dir: &Path) -> Vec<DirEnt>;
    fn home(&self) -> Option<PathBuf>;

    // Provided method
    fn is_dir(&self, path: &Path) -> bool { ... }
}
Expand description

Where path completion looks up files: the local disk, or a commander’s remote listing.

Required Methods§

Source

fn list(&self, dir: &Path) -> Vec<DirEnt>

Source

fn home(&self) -> Option<PathBuf>

Provided Methods§

Source

fn is_dir(&self, path: &Path) -> bool

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§