pub enum ConformalError {
Show 24 variants
EmptyCoverages,
InvalidCoverage {
index: usize,
},
NonIncreasingCoverage {
index: usize,
},
InvalidSampleCount {
sample_count: u64,
},
DecimalConversion,
EmptyMatrix {
matrix: &'static str,
},
EmptyMatrixRow {
matrix: &'static str,
row: usize,
},
RaggedMatrix {
matrix: &'static str,
row: usize,
expected: usize,
actual: usize,
},
NonFiniteMatrixValue {
matrix: &'static str,
row: usize,
target: usize,
},
NegativeResidual {
row: usize,
target: usize,
},
SmallSampleRank {
rank: u64,
sample_count: u64,
},
EmptyQuantiles,
ZeroQuantileRank {
coverage_index: usize,
},
DecreasingQuantileRank {
coverage_index: usize,
},
QuantileShape {
coverage_index: usize,
expected: usize,
actual: usize,
},
InvalidRadius {
coverage_index: usize,
radius_index: usize,
},
MixedRadiusStatus {
coverage_index: usize,
},
NonNestedRadius {
coverage_index: usize,
radius_index: usize,
},
MatrixRowCountMismatch {
left: &'static str,
right: &'static str,
},
MatrixTargetCountMismatch {
left: &'static str,
right: &'static str,
},
InvalidIntervalCell {
row: usize,
target: usize,
},
ArithmeticOverflow {
operation: &'static str,
},
UnrepresentableInterval {
coverage_index: usize,
row: usize,
target: usize,
},
MetricCountTooLarge,
}Expand description
Validation or finite-arithmetic failure in the native conformal kernels.
Variants§
EmptyCoverages
InvalidCoverage
NonIncreasingCoverage
InvalidSampleCount
DecimalConversion
EmptyMatrix
EmptyMatrixRow
RaggedMatrix
NonFiniteMatrixValue
NegativeResidual
SmallSampleRank
EmptyQuantiles
ZeroQuantileRank
DecreasingQuantileRank
QuantileShape
InvalidRadius
MixedRadiusStatus
NonNestedRadius
MatrixRowCountMismatch
MatrixTargetCountMismatch
InvalidIntervalCell
ArithmeticOverflow
UnrepresentableInterval
MetricCountTooLarge
Trait Implementations§
Source§impl Clone for ConformalError
impl Clone for ConformalError
Source§fn clone(&self) -> ConformalError
fn clone(&self) -> ConformalError
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 ConformalError
impl Debug for ConformalError
Source§impl Display for ConformalError
impl Display for ConformalError
impl Eq for ConformalError
Source§impl Error for ConformalError
impl Error for ConformalError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ConformalError
impl PartialEq for ConformalError
impl StructuralPartialEq for ConformalError
Auto Trait Implementations§
impl Freeze for ConformalError
impl RefUnwindSafe for ConformalError
impl Send for ConformalError
impl Sync for ConformalError
impl Unpin for ConformalError
impl UnsafeUnpin for ConformalError
impl UnwindSafe for ConformalError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.