ZoxideOperations

Trait ZoxideOperations 

Source
pub trait ZoxideOperations {
    // Required methods
    fn add<P: AsRef<Path>>(&self, path: P) -> ZoxideResult<()>;
    fn list(&self) -> ZoxideResult<Vec<ZoxideEntry>>;
    fn query(&self, keywords: &[&str]) -> ZoxideResult<Vec<ZoxideEntry>>;
}
Expand description

Trait defining zoxide operations

Required Methods§

Source

fn add<P: AsRef<Path>>(&self, path: P) -> ZoxideResult<()>

Add a path to zoxide database

Source

fn list(&self) -> ZoxideResult<Vec<ZoxideEntry>>

List all paths in zoxide database with their scores

Source

fn query(&self, keywords: &[&str]) -> ZoxideResult<Vec<ZoxideEntry>>

Query zoxide for matching paths

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§