pub struct EdgeWeight { /* private fields */ }Expand description
The weight of a directed edge in the dependency graph, representing a binary relation of dependency of the source node on the target node.
Implementations§
Source§impl EdgeWeight
impl EdgeWeight
Sourcepub fn features(&self) -> &BTreeMap<String, Vec<String>>
pub fn features(&self) -> &BTreeMap<String, Vec<String>>
Get the features that are enabled by the dependency.
This returns a map from a feature of the source crate to features of the target crate that it enables.
For example, if the dependent crate has features a = ["crate/b", "crate/c"], enabling
features “b” and “c” of the dependency “crate”, this returns a map: {("a": ["b", "c"]}.
Trait Implementations§
Source§impl Clone for EdgeWeight
impl Clone for EdgeWeight
Source§fn clone(&self) -> EdgeWeight
fn clone(&self) -> EdgeWeight
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for EdgeWeight
impl RefUnwindSafe for EdgeWeight
impl Send for EdgeWeight
impl Sync for EdgeWeight
impl Unpin for EdgeWeight
impl UnwindSafe for EdgeWeight
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