pub enum BlockPartitionError {
EmptyBlock {
block: usize,
},
CardinalityMismatch {
expected: usize,
found: usize,
},
CardinalityOverflow,
OrdinalMap(OrdinalMapError),
}Expand description
Failure while validating an ordered block partition.
Variants§
EmptyBlock
One declared block contained no positions.
CardinalityMismatch
Flattened blocks did not cover the declared finite domain.
CardinalityOverflow
Contiguous block lengths overflowed the platform cardinality.
OrdinalMap(OrdinalMapError)
The flattened block order was not a complete ordinal bijection.
Trait Implementations§
Source§impl Clone for BlockPartitionError
impl Clone for BlockPartitionError
Source§fn clone(&self) -> BlockPartitionError
fn clone(&self) -> BlockPartitionError
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 BlockPartitionError
impl Debug for BlockPartitionError
Source§impl Display for BlockPartitionError
impl Display for BlockPartitionError
impl Eq for BlockPartitionError
Source§impl Error for BlockPartitionError
impl Error for BlockPartitionError
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<OrdinalMapError> for BlockPartitionError
impl From<OrdinalMapError> for BlockPartitionError
Source§fn from(source: OrdinalMapError) -> Self
fn from(source: OrdinalMapError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BlockPartitionError
impl PartialEq for BlockPartitionError
impl StructuralPartialEq for BlockPartitionError
Auto Trait Implementations§
impl Freeze for BlockPartitionError
impl RefUnwindSafe for BlockPartitionError
impl Send for BlockPartitionError
impl Sync for BlockPartitionError
impl Unpin for BlockPartitionError
impl UnsafeUnpin for BlockPartitionError
impl UnwindSafe for BlockPartitionError
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