pub enum CsvErrorKind {
UnexpectedEof {
expected: &'static str,
},
InvalidValue {
message: String,
},
UnsupportedType {
type_name: &'static str,
},
TooFewFields {
expected: usize,
got: usize,
},
TooManyFields {
expected: usize,
got: usize,
},
InvalidUtf8 {
message: String,
},
}Expand description
Specific kinds of CSV errors.
Variants§
UnexpectedEof
Unexpected end of input.
InvalidValue
Invalid value.
UnsupportedType
Unsupported type for CSV format.
TooFewFields
Too few fields in the CSV row.
TooManyFields
Too many fields in the CSV row.
InvalidUtf8
Invalid UTF-8 in input.
Trait Implementations§
Source§impl Clone for CsvErrorKind
impl Clone for CsvErrorKind
Source§fn clone(&self) -> CsvErrorKind
fn clone(&self) -> CsvErrorKind
Returns a duplicate of the value. Read more
1.0.0 · 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 CsvErrorKind
impl Debug for CsvErrorKind
Source§impl From<CsvErrorKind> for CsvError
impl From<CsvErrorKind> for CsvError
Source§fn from(kind: CsvErrorKind) -> Self
fn from(kind: CsvErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CsvErrorKind
impl RefUnwindSafe for CsvErrorKind
impl Send for CsvErrorKind
impl Sync for CsvErrorKind
impl Unpin for CsvErrorKind
impl UnwindSafe for CsvErrorKind
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