#[repr(C)]pub struct PkgRecords { /* private fields */ }
Implementations§
Source§impl PkgRecords
impl 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.
Source§impl PkgRecords
impl PkgRecords
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§
Source§impl ExternType for PkgRecords
impl ExternType for PkgRecords
impl UniquePtrTarget for PkgRecords
Auto Trait Implementations§
impl !Freeze for PkgRecords
impl RefUnwindSafe for PkgRecords
impl !Send for PkgRecords
impl !Sync for PkgRecords
impl !Unpin for PkgRecords
impl UnwindSafe for PkgRecords
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