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§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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)