Skip to main content

IndexView

Trait IndexView 

Source
pub trait IndexView {
    // Required method
    fn versions(&mut self, name: &str) -> Result<Option<Vec<Candidate>>, String>;
}
Expand description

What the resolver asks of an index.

Required Methods§

Source

fn versions(&mut self, name: &str) -> Result<Option<Vec<Candidate>>, String>

Every version of name, or Ok(None) when the index has no package of that name. Err when the index cannot be read.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§