pub enum RowError {
Alphabet(AlphabetError),
Aggregate(SeriesError),
OrdinalMap(OrdinalMapError),
SegmentOutOfBounds {
start: usize,
len: usize,
},
WrappedSegmentTooLong {
len: usize,
},
InvalidOrdinal {
ordinal: usize,
},
EmptyPartitionBlock {
block_index: usize,
},
DuplicatePartitionOrdinal {
ordinal: u8,
first_block_index: usize,
second_block_index: usize,
},
PartitionCoverageMismatch {
missing: Vec<u8>,
},
InvalidPartitionSize {
size: usize,
},
}Expand description
Failure while constructing the canonical alphabet or a strict tone row.
Variants§
Alphabet(AlphabetError)
The canonical pitch-class alphabet could not be constructed.
Aggregate(SeriesError)
The supplied row failed canonical membership or exactly-once validation.
OrdinalMap(OrdinalMapError)
A caller-supplied ordinal permutation was not a complete bijection.
SegmentOutOfBounds
A contiguous row segment reached outside the twelve row positions.
Fields
WrappedSegmentTooLong
A wrapped row segment exceeded the row length.
InvalidOrdinal
An indexed segment referenced an invalid row ordinal.
EmptyPartitionBlock
A requested partition block contained no row ordinals.
DuplicatePartitionOrdinal
A requested partition assigned one row ordinal to more than one block.
Fields
PartitionCoverageMismatch
A requested partition failed to cover the full row exactly once.
InvalidPartitionSize
A derivation or combinatoriality partition size was unsupported.
Trait Implementations§
impl Eq for RowError
Source§impl Error for RowError
impl Error for RowError
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<AlphabetError> for RowError
impl From<AlphabetError> for RowError
Source§fn from(source: AlphabetError) -> Self
fn from(source: AlphabetError) -> Self
Converts to this type from the input type.
Source§impl From<OrdinalMapError> for RowError
impl From<OrdinalMapError> for RowError
Source§fn from(source: OrdinalMapError) -> Self
fn from(source: OrdinalMapError) -> Self
Converts to this type from the input type.
Source§impl From<SeriesError> for RowError
impl From<SeriesError> for RowError
Source§fn from(source: SeriesError) -> Self
fn from(source: SeriesError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for RowError
Auto Trait Implementations§
impl Freeze for RowError
impl RefUnwindSafe for RowError
impl Send for RowError
impl Sync for RowError
impl Unpin for RowError
impl UnsafeUnpin for RowError
impl UnwindSafe for RowError
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