pub enum CMapError {
DartBufferTooSmall {
required: usize,
},
HalfEdgeBufferTooSmall {
required: usize,
},
DartOutOfRange {
index: u32,
},
Beta1Dangling {
dart: u32,
points_to: u32,
},
Beta1NotPermutation {
dart: u32,
},
Beta2NotInvolution {
dart: u32,
beta2: u32,
beta2_beta2: u32,
},
FaceInconsistent {
dart: u32,
face_a: u32,
face_b: u32,
},
OriginInconsistent {
dart: u32,
expected: u32,
found: u32,
},
}Expand description
Errors raised by the combinatorial-map core. Each variant names the specific invariant that was violated so callers can surface a precise diagnostic.
Variants§
DartBufferTooSmall
darts buffer too small to hold the converted half-edges.
HalfEdgeBufferTooSmall
half_edges buffer too small to hold the converted darts.
DartOutOfRange
A β₁ or β₂ link points outside the dart array.
Beta1Dangling
A β₁ link points to INVALID_INDEX mid-cycle (a dangling next pointer).
Beta1NotPermutation
Following β₁ from dart did not return to dart within len hops —
the permutation is malformed (not a finite cycle).
Beta2NotInvolution
β₂(β₂(d)) != d — the twin link is not an involution.
FaceInconsistent
Two darts in the same β₁-cycle carry different face fields.
OriginInconsistent
The origin connectivity invariant failed:
origin(d) != origin(β₁(β₂(d))) for an interior dart.
Trait Implementations§
impl Copy for CMapError
impl Eq for CMapError
impl StructuralPartialEq for CMapError
Auto Trait Implementations§
impl Freeze for CMapError
impl RefUnwindSafe for CMapError
impl Send for CMapError
impl Sync for CMapError
impl Unpin for CMapError
impl UnsafeUnpin for CMapError
impl UnwindSafe for CMapError
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more