pub struct DebView { /* private fields */ }Expand description
Typed view over the deb sub-index. Coords + the authoritative control stanza
come from the columns the plugin parsed out of the control tarball — NOT the
filename. Built once; get is O(1).
Implementations§
Source§impl DebView
impl DebView
Sourcepub fn get(&self, name: &str, version: &str, arch: &str) -> Option<DebPackage>
pub fn get(&self, name: &str, version: &str, arch: &str) -> Option<DebPackage>
O(1) lookup of the deb for (name, version, arch).
Sourcepub fn list(&self) -> Vec<(String, String, String, Option<String>)>
pub fn list(&self) -> Vec<(String, String, String, Option<String>)>
Authoritative (name, version, arch, control) of every deb in the view —
the APT Packages synthesis feeds off this.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Auto Trait Implementations§
impl Freeze for DebView
impl RefUnwindSafe for DebView
impl Send for DebView
impl Sync for DebView
impl Unpin for DebView
impl UnsafeUnpin for DebView
impl UnwindSafe for DebView
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