pub enum CostFunction {
Weight,
InverseConfidence,
Uniform,
}Expand description
Edge cost functions
Variants§
Weight
Use edge weight (higher weight = lower cost)
InverseConfidence
Use inverse confidence
Uniform
Uniform cost for all edges
Trait Implementations§
Source§impl Clone for CostFunction
impl Clone for CostFunction
Source§fn clone(&self) -> CostFunction
fn clone(&self) -> CostFunction
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 CostFunction
impl RefUnwindSafe for CostFunction
impl Send for CostFunction
impl Sync for CostFunction
impl Unpin for CostFunction
impl UnwindSafe for CostFunction
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