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§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".