pub trait HasWeight<T> {
// Required method
fn compute(metadata: Option<&T>) -> u32;
}
Expand description
Compute the weight of a CfgEdge
. Lower means shorter distance in the graph.
Required Methods§
Object Safety§
This trait is not object safe.