pub struct PythonView { /* private fields */ }Expand description
Typed view over the python sub-index. Built once; get is O(1).
Implementations§
Source§impl PythonView
impl PythonView
Sourcepub fn get(&self, name: &str, version: &str) -> Option<PythonPackage>
pub fn get(&self, name: &str, version: &str) -> Option<PythonPackage>
O(1) lookup → handle. None if the distribution is not in the archive.
Sourcepub fn list(&self) -> Vec<(String, String)>
pub fn list(&self) -> Vec<(String, String)>
Authoritative (name, version) coords of every distribution.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Auto Trait Implementations§
impl Freeze for PythonView
impl RefUnwindSafe for PythonView
impl Send for PythonView
impl Sync for PythonView
impl Unpin for PythonView
impl UnsafeUnpin for PythonView
impl UnwindSafe for PythonView
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