pub enum Node<N> {
Krate {
id: Kid,
krate: N,
features: EnabledFeatures,
},
Feature {
krate_index: NodeId,
name: String,
},
}
Expand description
A node in the crate graph.
Variants§
Krate
Fields
§
krate: N
Associated user data with the node. Must be From<cargo_metadata::Package>
§
features: EnabledFeatures
List of features enabled on the crate
Feature
Trait Implementations§
Auto Trait Implementations§
impl<N> Freeze for Node<N>where
N: Freeze,
impl<N> RefUnwindSafe for Node<N>where
N: RefUnwindSafe,
impl<N> Send for Node<N>where
N: Send,
impl<N> Sync for Node<N>where
N: Sync,
impl<N> Unpin for Node<N>where
N: Unpin,
impl<N> UnwindSafe for Node<N>where
N: UnwindSafe,
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