pub struct FeatureGraph {
pub workspace_members: BTreeSet<String>,
pub nodes: BTreeMap<String, FeatureNode>,
}Expand description
A best-effort, enriched dependency graph keyed by Cargo package ID.
Fields§
§workspace_members: BTreeSet<String>§nodes: BTreeMap<String, FeatureNode>Implementations§
Source§impl FeatureGraph
impl FeatureGraph
pub fn sorted_nodes(&self) -> impl Iterator<Item = &FeatureNode>
pub fn get(&self, package_id: &str) -> Option<&FeatureNode>
Trait Implementations§
Source§impl Clone for FeatureGraph
impl Clone for FeatureGraph
Source§fn clone(&self) -> FeatureGraph
fn clone(&self) -> FeatureGraph
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FeatureGraph
impl Debug for FeatureGraph
Source§impl Default for FeatureGraph
impl Default for FeatureGraph
Source§fn default() -> FeatureGraph
fn default() -> FeatureGraph
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FeatureGraph
impl RefUnwindSafe for FeatureGraph
impl Send for FeatureGraph
impl Sync for FeatureGraph
impl Unpin for FeatureGraph
impl UnsafeUnpin for FeatureGraph
impl UnwindSafe for FeatureGraph
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