pub enum SeriesTransformError {
OrdinalMap(OrdinalMapError),
Bijection(SymbolBijectionError),
Rule(AggregateRuleError),
Series(SeriesError),
SourceAlphabetMismatch {
expected: AlphabetId,
found: AlphabetId,
},
CompositionAlphabetMismatch {
first_target: AlphabetId,
second_source: AlphabetId,
},
RuleKindMismatch(AggregateRuleKind),
}Expand description
Failure while applying, inverting, or composing a series transform.
Variants§
OrdinalMap(OrdinalMapError)
A positional permutation was invalid for the series.
Bijection(SymbolBijectionError)
A symbolic relabeling was not a complete bijection.
Rule(AggregateRuleError)
Aggregate data could not be rebound to the target alphabet.
Series(SeriesError)
The transformed value did not satisfy its preserved aggregate rule.
SourceAlphabetMismatch
An alphabet-bound relabeling was applied to another source alphabet.
Fields
§
expected: AlphabetIdAlphabet bound into the relabeling.
§
found: AlphabetIdAlphabet retained by the supplied series.
CompositionAlphabetMismatch
Two alphabet relabelings did not meet at the same intermediate alphabet.
Fields
§
first_target: AlphabetIdTarget of the first relabeling.
§
second_source: AlphabetIdSource of the second relabeling.
RuleKindMismatch(AggregateRuleKind)
Private rule data disagreed with its public rule category.
Trait Implementations§
Source§impl Clone for SeriesTransformError
impl Clone for SeriesTransformError
Source§fn clone(&self) -> SeriesTransformError
fn clone(&self) -> SeriesTransformError
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 SeriesTransformError
impl Debug for SeriesTransformError
Source§impl Display for SeriesTransformError
impl Display for SeriesTransformError
impl Eq for SeriesTransformError
Source§impl Error for SeriesTransformError
impl Error for SeriesTransformError
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 SeriesTransformError
impl From<AggregateRuleError> for SeriesTransformError
Source§fn from(source: AggregateRuleError) -> Self
fn from(source: AggregateRuleError) -> Self
Converts to this type from the input type.
Source§impl From<OrdinalMapError> for SeriesTransformError
impl From<OrdinalMapError> for SeriesTransformError
Source§fn from(source: OrdinalMapError) -> Self
fn from(source: OrdinalMapError) -> 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 From<SymbolBijectionError> for SeriesTransformError
impl From<SymbolBijectionError> for SeriesTransformError
Source§fn from(source: SymbolBijectionError) -> Self
fn from(source: SymbolBijectionError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SeriesTransformError
impl PartialEq for SeriesTransformError
impl StructuralPartialEq for SeriesTransformError
Auto Trait Implementations§
impl Freeze for SeriesTransformError
impl RefUnwindSafe for SeriesTransformError
impl Send for SeriesTransformError
impl Sync for SeriesTransformError
impl Unpin for SeriesTransformError
impl UnsafeUnpin for SeriesTransformError
impl UnwindSafe for SeriesTransformError
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