#[non_exhaustive]pub enum TableError {
NoBatches,
ColumnCount {
expected: usize,
found: usize,
},
ColumnMismatch {
column: usize,
},
NoSuchColumn(usize),
}Expand description
Why a batch could not be added, or a column setting applied.
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.
NoBatches
No batch was given, so there is no schema.
ColumnCount
The batch has a different number of columns.
ColumnMismatch
The batch’s column at this index has another data type.
NoSuchColumn(usize)
There is no column at this index.
Trait Implementations§
Source§impl Clone for TableError
impl Clone for TableError
Source§impl Debug for TableError
impl Debug for TableError
Source§impl Display for TableError
impl Display for TableError
impl Eq for TableError
Source§impl Error for TableError
impl Error for TableError
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 TableError
impl PartialEq for TableError
impl StructuralPartialEq for TableError
Auto Trait Implementations§
impl Freeze for TableError
impl RefUnwindSafe for TableError
impl Send for TableError
impl Sync for TableError
impl Unpin for TableError
impl UnsafeUnpin for TableError
impl UnwindSafe for TableError
Blanket Implementations§
impl<T> Allocation for T
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