pub enum MergeStrategy {
Disallow,
Independent,
SmallestWeight,
KeepOriginal,
Replace,
}Expand description
Policy used when an edge already exists between two endpoints.
Variants§
Disallow
Reject the new parallel edge.
Independent
Merge independent error mechanisms and keep the original fault ids.
Weights are treated as log-likelihood ratios and probabilities are combined as independent events.
SmallestWeight
Keep whichever edge has the smaller weight.
KeepOriginal
Ignore the new edge.
Replace
Replace the existing edge with the new edge.
Trait Implementations§
Source§impl Clone for MergeStrategy
impl Clone for MergeStrategy
impl Copy for MergeStrategy
Source§impl Debug for MergeStrategy
impl Debug for MergeStrategy
impl Eq for MergeStrategy
Source§impl PartialEq for MergeStrategy
impl PartialEq for MergeStrategy
impl StructuralPartialEq for MergeStrategy
Auto Trait Implementations§
impl Freeze for MergeStrategy
impl RefUnwindSafe for MergeStrategy
impl Send for MergeStrategy
impl Sync for MergeStrategy
impl Unpin for MergeStrategy
impl UnsafeUnpin for MergeStrategy
impl UnwindSafe for MergeStrategy
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