Struct system_image::CachePackages
source · pub struct CachePackages { /* private fields */ }
Implementations§
source§impl CachePackages
impl CachePackages
sourcepub fn from_entries(entries: Vec<PinnedAbsolutePackageUrl>) -> Self
pub fn from_entries(entries: Vec<PinnedAbsolutePackageUrl>) -> Self
Create a new instance of CachePackages
containing entries provided.
sourcepub fn contents(
&self
) -> impl Iterator<Item = &PinnedAbsolutePackageUrl> + ExactSizeIterator
pub fn contents( &self ) -> impl Iterator<Item = &PinnedAbsolutePackageUrl> + ExactSizeIterator
Iterator over the contents of the mapping.
sourcepub fn into_contents(
self
) -> impl Iterator<Item = PinnedAbsolutePackageUrl> + ExactSizeIterator
pub fn into_contents( self ) -> impl Iterator<Item = PinnedAbsolutePackageUrl> + ExactSizeIterator
Iterator over the contents of the mapping, consuming self.
sourcepub fn hash_for_package(&self, pkg: &AbsolutePackageUrl) -> Option<Hash>
pub fn hash_for_package(&self, pkg: &AbsolutePackageUrl) -> Option<Hash>
Get the hash for a package.
pub fn serialize(&self, writer: impl Write) -> Result<(), Error>
pub fn find_unpinned_url( &self, url: &UnpinnedAbsolutePackageUrl ) -> Option<&PinnedAbsolutePackageUrl>
Trait Implementations§
source§impl Debug for CachePackages
impl Debug for CachePackages
source§impl PartialEq for CachePackages
impl PartialEq for CachePackages
source§fn eq(&self, other: &CachePackages) -> bool
fn eq(&self, other: &CachePackages) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CachePackages
impl StructuralPartialEq for CachePackages
Auto Trait Implementations§
impl Freeze for CachePackages
impl RefUnwindSafe for CachePackages
impl Send for CachePackages
impl Sync for CachePackages
impl Unpin for CachePackages
impl UnwindSafe for CachePackages
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