Struct fuchsia_pkg::MetaSubpackages
source · pub struct MetaSubpackages(/* private fields */);
Expand description
A MetaSubpackages
represents the “meta/fuchsia.pkg/subpackages” file of a Fuchsia
archive file of a Fuchsia package. It validates that all subpackage names
are valid.
Implementations§
source§impl MetaSubpackages
impl MetaSubpackages
pub const PATH: &'static str = "meta/fuchsia.pkg/subpackages"
sourcepub fn subpackages(&self) -> &HashMap<RelativePackageUrl, Hash>
pub fn subpackages(&self) -> &HashMap<RelativePackageUrl, Hash>
Get the map from subpackage names to Merkle Tree root hashes.
sourcepub fn into_subpackages(self) -> HashMap<RelativePackageUrl, Hash>
pub fn into_subpackages(self) -> HashMap<RelativePackageUrl, Hash>
Take the map from subpackage names to Merkle Tree root hashes.
sourcepub fn into_hashes_undeduplicated(self) -> impl Iterator<Item = Hash>
pub fn into_hashes_undeduplicated(self) -> impl Iterator<Item = Hash>
Take the Merkle Tree root hashes in an iterator. The returned iterator may include duplicates.
pub fn deserialize(reader: impl BufRead) -> Result<Self, MetaSubpackagesError>
pub fn serialize(&self, writer: impl Write) -> Result<(), MetaSubpackagesError>
Trait Implementations§
source§impl Clone for MetaSubpackages
impl Clone for MetaSubpackages
source§fn clone(&self) -> MetaSubpackages
fn clone(&self) -> MetaSubpackages
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MetaSubpackages
impl Debug for MetaSubpackages
source§impl Default for MetaSubpackages
impl Default for MetaSubpackages
source§fn default() -> MetaSubpackages
fn default() -> MetaSubpackages
Returns the “default value” for a type. Read more
source§impl FromIterator<(RelativePackageUrl, GenericDigest<FuchsiaMerkleMarker>)> for MetaSubpackages
impl FromIterator<(RelativePackageUrl, GenericDigest<FuchsiaMerkleMarker>)> for MetaSubpackages
source§impl PartialEq for MetaSubpackages
impl PartialEq for MetaSubpackages
source§fn eq(&self, other: &MetaSubpackages) -> bool
fn eq(&self, other: &MetaSubpackages) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MetaSubpackages
impl Serialize for MetaSubpackages
impl Eq for MetaSubpackages
impl StructuralPartialEq for MetaSubpackages
Auto Trait Implementations§
impl Freeze for MetaSubpackages
impl RefUnwindSafe for MetaSubpackages
impl Send for MetaSubpackages
impl Sync for MetaSubpackages
impl Unpin for MetaSubpackages
impl UnwindSafe for MetaSubpackages
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)