pub enum EvalError {
RowCountMismatch {
columns: u32,
alive: u32,
},
UnknownColumn(ColumnId),
TypeMismatch {
column: ColumnId,
expected: ColumnType,
actual: ColumnType,
},
RangeRequiresNumericColumn(ColumnId),
}Expand description
A typed predicate-evaluation failure.
Variants§
RowCountMismatch
The alive set and column store describe different document spaces.
UnknownColumn(ColumnId)
The predicate referred to a column absent from the schema.
TypeMismatch
A query value did not match the declared column type.
Fields
§
expected: ColumnTypeThe declared physical type.
§
actual: ColumnTypeThe supplied query value type.
RangeRequiresNumericColumn(ColumnId)
Range predicates are limited to numeric columns.
Trait Implementations§
impl Eq for EvalError
Source§impl Error for EvalError
impl Error for EvalError
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 EvalError
Auto Trait Implementations§
impl Freeze for EvalError
impl RefUnwindSafe for EvalError
impl Send for EvalError
impl Sync for EvalError
impl Unpin for EvalError
impl UnsafeUnpin for EvalError
impl UnwindSafe for EvalError
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