pub struct CondaView { /* private fields */ }Expand description
Typed view over the conda sub-index. Built once; get is O(1).
Implementations§
Source§impl CondaView
impl CondaView
Sourcepub fn get(&self, name: &str, version: &str) -> Option<CondaPackage>
pub fn get(&self, name: &str, version: &str) -> Option<CondaPackage>
O(1) lookup of the first (name, version) match across any build/subdir.
Use get_exact to pin the build + subdir.
Sourcepub fn get_exact(
&self,
name: &str,
version: &str,
build: &str,
subdir: &str,
) -> Option<CondaPackage>
pub fn get_exact( &self, name: &str, version: &str, build: &str, subdir: &str, ) -> Option<CondaPackage>
O(1) lookup of an exact (name, version, build, subdir) coord.
Sourcepub fn list(&self) -> Vec<(String, String, String, String)>
pub fn list(&self) -> Vec<(String, String, String, String)>
Authoritative (name, version, build, subdir) coords of every package.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Auto Trait Implementations§
impl Freeze for CondaView
impl RefUnwindSafe for CondaView
impl Send for CondaView
impl Sync for CondaView
impl Unpin for CondaView
impl UnsafeUnpin for CondaView
impl UnwindSafe for CondaView
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more