Skip to main content

RustView

Type Alias RustView 

Source
pub type RustView = CoordView<RustSpec>;
Expand description

Typed view over the rust (cargo) sub-index.

Aliased Type§

pub struct RustView { /* private fields */ }

Implementations§

Source§

impl RustView

Source

pub fn get(&self, name: &str, version: &str) -> Option<RustPackage>

O(1) lookup → handle. None if the crate is not in the archive.

Source

pub fn list(&self) -> Vec<(String, String)>

Authoritative (name, version) coords of every crate in the view.