pub enum SeriesError {
Alphabet(AlphabetError),
Rule(AggregateRuleError),
ForeignSymbol {
position: usize,
alphabet_id: AlphabetId,
},
RepeatedSymbol {
position: usize,
first: usize,
},
WrongLength {
expected: usize,
found: usize,
},
MultiplicityMismatch {
alphabet_position: usize,
expected: usize,
found: usize,
},
ProjectionMismatch {
class_id: ProjectionId,
expected: usize,
found: usize,
},
NotPermutation(AlphabetId),
Rank(RankAdapterError),
}Expand description
Failure while validating or ranking a symbol-bearing series.
Variants§
Alphabet(AlphabetError)
The supplied alphabet was invalid.
Rule(AggregateRuleError)
The aggregate rule was invalid for the supplied alphabet.
ForeignSymbol
A series position contained a symbol outside the alphabet.
Fields
§
alphabet_id: AlphabetIdStable alphabet id.
RepeatedSymbol
A no-repeat rule encountered a repeated symbol.
Fields
WrongLength
Series length differed from the rule’s declared total.
Fields
MultiplicityMismatch
An alphabet symbol occurred a different number of times than declared.
Fields
ProjectionMismatch
A projected class occurred a different number of times than declared.
Fields
§
class_id: ProjectionIdStable projected class id.
NotPermutation(AlphabetId)
The valid series is not an exactly-once permutation of its alphabet.
Rank(RankAdapterError)
The shared discrete permutation-rank adapter rejected the request.
Trait Implementations§
Source§impl Clone for SeriesError
impl Clone for SeriesError
Source§fn clone(&self) -> SeriesError
fn clone(&self) -> SeriesError
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 SeriesError
impl Debug for SeriesError
Source§impl Display for SeriesError
impl Display for SeriesError
impl Eq for SeriesError
Source§impl Error for SeriesError
impl Error for SeriesError
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 From<AggregateRuleError> for SeriesError
impl From<AggregateRuleError> for SeriesError
Source§fn from(source: AggregateRuleError) -> Self
fn from(source: AggregateRuleError) -> Self
Converts to this type from the input type.
Source§impl From<AlphabetError> for SeriesError
impl From<AlphabetError> for SeriesError
Source§fn from(source: AlphabetError) -> Self
fn from(source: AlphabetError) -> Self
Converts to this type from the input type.
Source§impl From<RankAdapterError> for SeriesError
impl From<RankAdapterError> for SeriesError
Source§fn from(source: RankAdapterError) -> Self
fn from(source: RankAdapterError) -> Self
Converts to this type from the input type.
Source§impl From<SeriesError> for SeriesTransformError
impl From<SeriesError> for SeriesTransformError
Source§fn from(source: SeriesError) -> Self
fn from(source: SeriesError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SeriesError
impl PartialEq for SeriesError
impl StructuralPartialEq for SeriesError
Auto Trait Implementations§
impl Freeze for SeriesError
impl RefUnwindSafe for SeriesError
impl Send for SeriesError
impl Sync for SeriesError
impl Unpin for SeriesError
impl UnsafeUnpin for SeriesError
impl UnwindSafe for SeriesError
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