pub enum RepairSkipReason {
PolicyDisabled,
Inadmissible {
operation: TopologicalOperation,
required: TopologyGuarantee,
found: TopologyGuarantee,
},
}Expand description
Reason why flip-based repair was skipped.
§Examples
use delaunay::prelude::operations::RepairSkipReason;
let reason = RepairSkipReason::PolicyDisabled;
assert!(matches!(reason, RepairSkipReason::PolicyDisabled));Variants§
PolicyDisabled
Repair policy is disabled for this insertion count.
Inadmissible
The requested operation is inadmissible under the current topology guarantee.
Fields
§
operation: TopologicalOperationThe operation that was attempted.
§
required: TopologyGuaranteeRequired topology guarantee for this operation.
§
found: TopologyGuaranteeActual topology guarantee.
Trait Implementations§
Source§impl Clone for RepairSkipReason
impl Clone for RepairSkipReason
Source§fn clone(&self) -> RepairSkipReason
fn clone(&self) -> RepairSkipReason
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 RepairSkipReason
impl Debug for RepairSkipReason
Source§impl PartialEq for RepairSkipReason
impl PartialEq for RepairSkipReason
Source§fn eq(&self, other: &RepairSkipReason) -> bool
fn eq(&self, other: &RepairSkipReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RepairSkipReason
impl Eq for RepairSkipReason
impl StructuralPartialEq for RepairSkipReason
Auto Trait Implementations§
impl Freeze for RepairSkipReason
impl RefUnwindSafe for RepairSkipReason
impl Send for RepairSkipReason
impl Sync for RepairSkipReason
impl Unpin for RepairSkipReason
impl UnsafeUnpin for RepairSkipReason
impl UnwindSafe for RepairSkipReason
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