[−][src]Struct wasm_run::prelude::Metadata
Starting point for metadata returned by cargo metadata
Fields
packages: Vec<Package, Global>
A list of all crates referenced by this crate (and the crate itself)
workspace_members: Vec<PackageId, Global>
A list of all workspace members
resolve: Option<Resolve>
Dependencies graph
workspace_root: PathBuf
Workspace root
target_directory: PathBuf
Build directory
workspace_metadata: Value
The workspace-level metadata object. Null if non-existent.
Implementations
impl Metadata
[src]
pub fn root_package(&self) -> Option<&Package>
[src]
Get the root package of this metadata instance.
Trait Implementations
impl Clone for Metadata
[src]
impl Debug for Metadata
[src]
impl<'de> Deserialize<'de> for Metadata
[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Metadata, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Metadata, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<'a> Index<&'a PackageId> for Metadata
[src]
type Output = Package
The returned type after indexing.
pub fn index(&self, idx: &'a PackageId) -> &Package
[src]
impl PackageExt for Metadata
[src]
impl Serialize for Metadata
[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Auto Trait Implementations
impl RefUnwindSafe for Metadata
[src]
impl Send for Metadata
[src]
impl Sync for Metadata
[src]
impl Unpin for Metadata
[src]
impl UnwindSafe for Metadata
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
[src]
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastSync for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,