pub enum UsageErrorKind {
Unreadable,
MissingColumn(&'static str),
NotANumber(&'static str),
TooManyDecimals(&'static str),
InvalidCsv,
AmountOverflow(&'static str),
}Variants§
Unreadable
The file could not be opened. line is 0 because no row was read.
MissingColumn(&'static str)
NotANumber(&'static str)
TooManyDecimals(&'static str)
InvalidCsv
AmountOverflow(&'static str)
A running total overflowed i64 micros. line is the row that caused
it, or 0 when the overflow is in a total summed across the whole
report and no single row is to blame. The Display impl drops the
line number in that case instead of printing the meaningless line 0.
Trait Implementations§
Source§impl Clone for UsageErrorKind
impl Clone for UsageErrorKind
Source§impl Debug for UsageErrorKind
impl Debug for UsageErrorKind
impl Eq for UsageErrorKind
Source§impl PartialEq for UsageErrorKind
impl PartialEq for UsageErrorKind
impl StructuralPartialEq for UsageErrorKind
Auto Trait Implementations§
impl Freeze for UsageErrorKind
impl RefUnwindSafe for UsageErrorKind
impl Send for UsageErrorKind
impl Sync for UsageErrorKind
impl Unpin for UsageErrorKind
impl UnsafeUnpin for UsageErrorKind
impl UnwindSafe for UsageErrorKind
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