pub enum SerialArrayError {
EmptyArray,
EmptyRowLabel,
EmptyRowOrder {
row_label: String,
},
RowLengthMismatch {
row_label: String,
expected: usize,
found: usize,
},
EmptyRequirementId,
EmptyPartitionId {
requirement_id: String,
},
EmptyPartition {
requirement_id: String,
partition_id: String,
},
ColumnOutOfRange {
requirement_id: String,
partition_id: String,
column: usize,
column_count: usize,
},
ZeroBlockWidth,
BlockWidthMismatch {
block_width: usize,
column_count: usize,
},
}Expand description
Failure while constructing or deriving one serial array analysis.
Variants§
EmptyArray
The array declared no horizontal rows.
EmptyRowLabel
One row label was empty.
EmptyRowOrder
One row carried no horizontal values.
RowLengthMismatch
Rows did not agree on one shared column count.
Fields
EmptyRequirementId
One vertical requirement label was empty.
EmptyPartitionId
One partition label was empty.
EmptyPartition
One partition named no columns.
Fields
ColumnOutOfRange
One partition named a column outside the array width.
Fields
ZeroBlockWidth
An all-partition report named a zero-width block.
BlockWidthMismatch
An all-partition block width did not divide the array width.
Trait Implementations§
Source§impl Clone for SerialArrayError
impl Clone for SerialArrayError
Source§fn clone(&self) -> SerialArrayError
fn clone(&self) -> SerialArrayError
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 SerialArrayError
impl Debug for SerialArrayError
Source§impl Display for SerialArrayError
impl Display for SerialArrayError
impl Eq for SerialArrayError
Source§impl Error for SerialArrayError
impl Error for SerialArrayError
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 SerialArrayError
impl PartialEq for SerialArrayError
impl StructuralPartialEq for SerialArrayError
Auto Trait Implementations§
impl Freeze for SerialArrayError
impl RefUnwindSafe for SerialArrayError
impl Send for SerialArrayError
impl Sync for SerialArrayError
impl Unpin for SerialArrayError
impl UnsafeUnpin for SerialArrayError
impl UnwindSafe for SerialArrayError
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