pub enum SchurDataError {
NotInitialized,
AlreadyInitialized,
InvalidFlag,
RowOutOfRange,
DimensionMismatch,
ZeroSign,
}Expand description
Failure modes returned by SchurData read/write entry points.
Pounce returns these as Err(_) where upstream’s debug asserts
would DBG_ASSERT.
Variants§
NotInitialized
A read method was called before a set_* method initialized
the instance. Upstream asserts Is_Initialized() in DBG builds
(e.g. SensIndexSchurData.cpp:176).
AlreadyInitialized
set_* called twice on the same instance. Upstream:
SensIndexSchurData.cpp:59-69.
InvalidFlag
set_from_flags was passed a flag value other than 0/1. Upstream
asserts flags[i] == 0 || flags[i] == 1
(SensIndexSchurData.cpp:51-78);
pounce surfaces it as this distinct Err (not AlreadyInitialized,
which would mislead — the instance is not initialized) and leaves
the instance untouched so a corrected retry is safe.
RowOutOfRange
A row index was out of range (e.g. multiplying_row(i) with
i >= nrows()).
DimensionMismatch
Caller-supplied buffer length didn’t match the expected shape.
ZeroSign
v == 0 passed to a sign-only set_* API. Upstream asserts
v != 0 (SensIndexSchurData.cpp:61).
Trait Implementations§
Source§impl Clone for SchurDataError
impl Clone for SchurDataError
Source§fn clone(&self) -> SchurDataError
fn clone(&self) -> SchurDataError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SchurDataError
Source§impl Debug for SchurDataError
impl Debug for SchurDataError
impl Eq for SchurDataError
Source§impl PartialEq for SchurDataError
impl PartialEq for SchurDataError
Source§fn eq(&self, other: &SchurDataError) -> bool
fn eq(&self, other: &SchurDataError) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SchurDataError
Auto Trait Implementations§
impl Freeze for SchurDataError
impl RefUnwindSafe for SchurDataError
impl Send for SchurDataError
impl Sync for SchurDataError
impl Unpin for SchurDataError
impl UnsafeUnpin for SchurDataError
impl UnwindSafe for SchurDataError
Blanket Implementations§
impl<T> Boilerplate for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T, U> Imply<T> for U
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
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>
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