pub enum SchurDataError {
NotInitialized,
AlreadyInitialized,
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, or flags contained
values other than 0/1. Upstream:
SensIndexSchurData.cpp:59-69.
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
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 SchurDataError
impl Debug for SchurDataError
Source§impl PartialEq for SchurDataError
impl PartialEq for SchurDataError
Source§fn eq(&self, other: &SchurDataError) -> bool
fn eq(&self, other: &SchurDataError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SchurDataError
impl Eq for SchurDataError
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§
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,
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