#[non_exhaustive]pub enum RowError {
Empty,
Character {
position: usize,
},
Shape {
characters: usize,
},
Row {
row: usize,
unreadable: usize,
},
Padding,
}Expand description
Why rows did not read back.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty
Nothing but separators.
Character
Not a digit, a letter, a ? or a separator, at this position in the
text.
Shape
The character count is not rows: a last row must hold at least one data character before its four of parity.
Row
A row with more wrong or unreadable characters than it can repair.
Padding
The data does not end on a whole byte.
Trait Implementations§
impl Eq for RowError
Source§impl Error for RowError
impl Error for RowError
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()
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.