pub struct VersionFile<'a> { /* private fields */ }
Expand description
Associates a version with a PackageFile
This allows a full description of all Versions in all files
Implementations§
Source§impl<'a> VersionFile<'a>
impl<'a> VersionFile<'a>
pub fn new(ptr: UniquePtr<VerFileIterator>, cache: &'a Cache) -> VersionFile<'a>
Sourcepub fn lookup(&self) -> &PackageRecords
pub fn lookup(&self) -> &PackageRecords
Return the PkgRecords Parser for the VersionFile
Sourcepub fn package_file(&self) -> PackageFile<'a>
pub fn package_file(&self) -> PackageFile<'a>
Return the PackageFile for this VersionFile
Methods from Deref<Target = VerFileIterator>§
Sourcepub unsafe fn package_file(&self) -> UniquePtr<PkgFileIterator>
pub unsafe fn package_file(&self) -> UniquePtr<PkgFileIterator>
Return the package file associated with this version file.
§Safety
If the inner pointer is null segfaults can occur.
Using crate::raw::IntoRawIter::make_safe
to convert to an Option
is recommended.
The returned UniquePtr cannot outlive the cache.
pub fn index(&self) -> u64
Sourcepub unsafe fn unique(&self) -> UniquePtr<VerFileIterator>
pub unsafe fn unique(&self) -> UniquePtr<VerFileIterator>
Clone the pointer.
§Safety
If the inner pointer is null segfaults can occur.
Using crate::raw::IntoRawIter::make_safe
to convert to an Option
is recommended.
The returned UniquePtr cannot outlive the cache.
pub fn raw_next(self: Pin<&mut Self>)
pub fn end(&self) -> bool
Trait Implementations§
Source§impl<'a> Deref for VersionFile<'a>
impl<'a> Deref for VersionFile<'a>
Source§impl<'a> Hash for VersionFile<'a>
impl<'a> Hash for VersionFile<'a>
Source§impl<'a> PartialEq for VersionFile<'a>
impl<'a> PartialEq for VersionFile<'a>
impl<'a> Eq for VersionFile<'a>
Auto Trait Implementations§
impl<'a> Freeze for VersionFile<'a>
impl<'a> !RefUnwindSafe for VersionFile<'a>
impl<'a> !Send for VersionFile<'a>
impl<'a> !Sync for VersionFile<'a>
impl<'a> Unpin for VersionFile<'a>
impl<'a> !UnwindSafe for VersionFile<'a>
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