pub struct RpmView { /* private fields */ }Expand description
Typed view over the rpm sub-index. Coords (incl. real epoch) come from the
name/version/release/arch/epoch columns the plugin parsed out of the
RPM header — NOT the filename. Built once; get is O(1).
Implementations§
Source§impl RpmView
impl RpmView
Sourcepub fn get(
&self,
name: &str,
version: &str,
release: &str,
arch: &str,
) -> Option<RpmPackage>
pub fn get( &self, name: &str, version: &str, release: &str, arch: &str, ) -> Option<RpmPackage>
O(1) lookup of the rpm for (name, version, release, arch).
Sourcepub fn list(&self) -> Vec<(String, String, String, String, Option<String>)>
pub fn list(&self) -> Vec<(String, String, String, String, Option<String>)>
Authoritative (name, version, release, arch, epoch) of every rpm in the
view — the NEVRA-only projection.
Sourcepub fn list_meta(&self) -> Vec<RpmMetaRow>
pub fn list_meta(&self) -> Vec<RpmMetaRow>
Every rpm’s full authoritative header metadata (NEVRA + the rpm-md
primary.xml fields) — what holger’s primary.xml synthesis emits.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Auto Trait Implementations§
impl Freeze for RpmView
impl RefUnwindSafe for RpmView
impl Send for RpmView
impl Sync for RpmView
impl Unpin for RpmView
impl UnsafeUnpin for RpmView
impl UnwindSafe for RpmView
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