pub struct SubpackagesBuildManifest(/* private fields */);
Expand description
Helper type for reading the build-time information based on the subpackage
declarations declared in a build file (such as the subpackages
list in
a fuchsia_package()
target, in BUILD.gn
).
Implementations§
Source§impl SubpackagesBuildManifest
impl SubpackagesBuildManifest
Sourcepub fn entries(&self) -> &[SubpackagesBuildManifestEntry]
pub fn entries(&self) -> &[SubpackagesBuildManifestEntry]
Return the subpackage manifest entries.
Sourcepub fn to_subpackages(
&self,
) -> Result<Vec<(RelativePackageUrl, Hash, Utf8PathBuf)>>
pub fn to_subpackages( &self, ) -> Result<Vec<(RelativePackageUrl, Hash, Utf8PathBuf)>>
Open up each entry in the manifest and return the subpackage url and hash.
Sourcepub fn deserialize(reader: impl BufRead) -> Result<Self>
pub fn deserialize(reader: impl BufRead) -> Result<Self>
Deserializes a SubpackagesBuildManifest
from json.
Trait Implementations§
Source§impl Clone for SubpackagesBuildManifest
impl Clone for SubpackagesBuildManifest
Source§fn clone(&self) -> SubpackagesBuildManifest
fn clone(&self) -> SubpackagesBuildManifest
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 SubpackagesBuildManifest
impl Debug for SubpackagesBuildManifest
Source§impl From<Vec<SubpackagesBuildManifestEntry>> for SubpackagesBuildManifest
impl From<Vec<SubpackagesBuildManifestEntry>> for SubpackagesBuildManifest
Source§fn from(entries: Vec<SubpackagesBuildManifestEntry>) -> Self
fn from(entries: Vec<SubpackagesBuildManifestEntry>) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SubpackagesBuildManifest
impl PartialEq for SubpackagesBuildManifest
impl Eq for SubpackagesBuildManifest
impl StructuralPartialEq for SubpackagesBuildManifest
Auto Trait Implementations§
impl Freeze for SubpackagesBuildManifest
impl RefUnwindSafe for SubpackagesBuildManifest
impl Send for SubpackagesBuildManifest
impl Sync for SubpackagesBuildManifest
impl Unpin for SubpackagesBuildManifest
impl UnwindSafe for SubpackagesBuildManifest
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
)