#[non_exhaustive]pub enum CompositionError {
Show 38 variants
EmptyMatrix,
Shape {
samples: usize,
components: usize,
values: usize,
expected: usize,
},
EmptyIdentity {
kind: &'static str,
},
DuplicateIdentity {
kind: &'static str,
identity: String,
},
RaggedRow {
row: String,
found: usize,
expected: usize,
},
InvalidNumber {
sample: String,
component: String,
value: String,
},
NonFinite {
sample: String,
component: String,
value: f64,
},
InvalidComponent {
sample: String,
component: String,
value: f64,
requirement: &'static str,
},
EmptyComposition(String),
ComponentMismatch {
details: String,
},
SampleMismatch {
details: String,
},
UnknownReference(String),
ReferenceOutOfRange {
index: usize,
width: usize,
},
TooFewComponents {
found: usize,
required: usize,
},
NonFiniteScalar(f64),
NonFiniteCoordinate {
sample: String,
component: String,
},
BasisShape {
rows: usize,
columns: usize,
expected_rows: usize,
expected_columns: usize,
},
InvalidPartitionValue {
row: usize,
value: i8,
},
EmptyPartitionSide(usize),
NonOrthonormalBasis {
left: usize,
right: usize,
value: f64,
},
NonBifurcatingTree {
node: usize,
children: usize,
},
TreeTipMismatch(String),
InvalidParameter {
name: &'static str,
requirement: &'static str,
value: f64,
},
NoDegreesOfFreedom {
ddof: usize,
observations: usize,
},
DenseMatrixTooLarge {
purpose: &'static str,
rows: usize,
columns: usize,
maximum: usize,
},
AllocationFailed {
purpose: &'static str,
cells: usize,
},
UnknownComponent(String),
UnknownMetadataColumn(String),
DuplicateMetadataSample(String),
MissingMetadataSample(String),
UnusedMetadataSample(String),
EmptyGroup(String),
InvalidGrouping,
Statistics(String),
MissingHeader,
InvalidHeader,
Delimited(String),
Io(String),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EmptyMatrix
Shape
EmptyIdentity
DuplicateIdentity
RaggedRow
InvalidNumber
NonFinite
InvalidComponent
EmptyComposition(String)
ComponentMismatch
SampleMismatch
UnknownReference(String)
ReferenceOutOfRange
TooFewComponents
NonFiniteScalar(f64)
NonFiniteCoordinate
BasisShape
InvalidPartitionValue
EmptyPartitionSide(usize)
NonOrthonormalBasis
NonBifurcatingTree
TreeTipMismatch(String)
InvalidParameter
NoDegreesOfFreedom
DenseMatrixTooLarge
AllocationFailed
UnknownComponent(String)
UnknownMetadataColumn(String)
DuplicateMetadataSample(String)
MissingMetadataSample(String)
UnusedMetadataSample(String)
EmptyGroup(String)
InvalidGrouping
Statistics(String)
MissingHeader
InvalidHeader
Delimited(String)
Io(String)
Trait Implementations§
Source§impl Debug for CompositionError
impl Debug for CompositionError
Source§impl Display for CompositionError
impl Display for CompositionError
Source§impl Error for CompositionError
impl Error for CompositionError
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 CompositionError
impl PartialEq for CompositionError
impl StructuralPartialEq for CompositionError
Auto Trait Implementations§
impl Freeze for CompositionError
impl RefUnwindSafe for CompositionError
impl Send for CompositionError
impl Sync for CompositionError
impl Unpin for CompositionError
impl UnsafeUnpin for CompositionError
impl UnwindSafe for CompositionError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.