pub struct Manifest {
pub packages: HashMap<String, Package>,
}
Expand description
Represents a toolchain manifest file.
Fields§
§packages: HashMap<String, Package>
Implementations§
Source§impl Manifest
impl Manifest
Sourcepub fn from_toml_bytes(data: &[u8]) -> Result<Self>
pub fn from_toml_bytes(data: &[u8]) -> Result<Self>
Obtain an instance by parsing TOML bytes.
pub fn from_toml(table: Table) -> Result<Self>
pub fn parse_packages(table: Table) -> Result<HashMap<String, Package>>
Sourcepub fn find_package(
&self,
package: &str,
target_triple: &str,
) -> Option<(String, ManifestTargetedPackage)>
pub fn find_package( &self, package: &str, target_triple: &str, ) -> Option<(String, ManifestTargetedPackage)>
Find a package for a target triple in this manifest.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Manifest
impl RefUnwindSafe for Manifest
impl Send for Manifest
impl Sync for Manifest
impl Unpin for Manifest
impl UnwindSafe for Manifest
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