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§
Sourcefn list(&self) -> ZoxideResult<Vec<ZoxideEntry>>
fn list(&self) -> ZoxideResult<Vec<ZoxideEntry>>
List all paths in zoxide database with their scores
Sourcefn query(&self, keywords: &[&str]) -> ZoxideResult<Vec<ZoxideEntry>>
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.