pub struct PackageRecords { /* private fields */ }
Implementations§
Source§impl PackageRecords
impl PackageRecords
pub fn new(ptr: UniquePtr<PkgRecords>) -> PackageRecords
pub fn ver_lookup(&self, file: &VerFileIterator) -> &PackageRecords
pub fn desc_lookup(&self, file: &DescIterator) -> &PackageRecords
pub fn short_desc(&self) -> Option<String>
pub fn long_desc(&self) -> Option<String>
pub fn filename(&self) -> String
pub fn get_field(&self, field: String) -> Option<String>
pub fn hash_find(&self, hash_type: String) -> Option<String>
Methods from Deref<Target = PkgRecords>§
Sourcepub unsafe fn ver_lookup(&self, ver_file: &VerFileIterator) -> UniquePtr<Parser>
pub unsafe fn ver_lookup(&self, ver_file: &VerFileIterator) -> UniquePtr<Parser>
Move the records into the correct spot for the Version File.
§Safety
The returned Parser can not out live the records struct. If you hold a Parser and lookup another file, the data that parser returns will change.
The returned UniquePtr cannot outlive the cache.
Sourcepub unsafe fn desc_lookup(&self, desc_file: &DescIterator) -> UniquePtr<Parser>
pub unsafe fn desc_lookup(&self, desc_file: &DescIterator) -> UniquePtr<Parser>
Move the records into the correct spot for the Description File.
§Safety
The returned Parser can not out live the records struct. If you hold a Parser and lookup another file, the data that parser returns will change.
The returned UniquePtr cannot outlive the cache.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for PackageRecords
impl !RefUnwindSafe for PackageRecords
impl !Send for PackageRecords
impl !Sync for PackageRecords
impl Unpin for PackageRecords
impl UnwindSafe for PackageRecords
Blanket Implementations§
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