pub enum EvaluateError {
Show 53 variants
FormatParseError(ParseError),
LiteralAddOnNonNumeric,
FunctionRequiresStringValue(String),
FunctionRequiresIntegerOrStringValue(String),
FunctionRequiresIntegerValue(String),
FunctionRequiresFloatOrIntegerValue(String),
FunctionRequiresUSizeValue(String),
FunctionRequiresFloatValue(String),
ExtractFormatNotMatched(String),
FunctionRequiresMapValue(String),
FunctionRequiresPointValue(String),
FunctionRequiresDateOrDateTimeValue(String),
FunctionRequiresStrOrListOrMapValue(String),
IdentifierNotFound(String),
CompoundIdentifierNotFound {
table_alias: String,
column_name: String,
},
BooleanTypeRequired(String),
MapOrListTypeRequired,
MapTypeRequired,
ListTypeRequired,
InvalidSortType,
InvalidSortOrder,
MapOrStringValueRequired(String),
TextLiteralRequired(String),
UnsupportedStatelessExpr(Expr),
ContextRequiredForIdentEvaluation(Expr),
UnreachableEmptyAggregateValue(Aggregate),
FilterContextRequiredForAggregate(Aggregate),
IncompatibleBitOperation(String, String),
DivisorShouldNotBeZero,
NegativeSubstrLenNotAllowed,
MoreThanOneRowReturned,
MoreThanOneColumnReturned,
SchemalessProjectionForInSubQuery,
SchemalessProjectionForSubQuery,
UnsupportedExprForFormatFunction(String),
AsciiFunctionRequiresSingleCharacterValue,
NonAsciiCharacterNotAllowed,
ChrFunctionRequiresIntegerValueInRange0To255,
UnsupportedBinaryOperation {
left: String,
op: BinaryOperator,
right: String,
},
UnsupportedUnaryPlus(String),
UnsupportedUnaryMinus(String),
UnsupportedUnaryFactorial(String),
IncompatibleUnaryBitwiseNotOperation(String),
UnsupportedCustomFunction,
FunctionRequiresMoreArguments {
function_name: String,
required_minimum: usize,
found: usize,
},
FunctionArgsLengthNotWithinRange {
name: String,
expected_minimum: usize,
expected_maximum: usize,
found: usize,
},
UnsupportedFunction(String),
NonComparableArgumentError(String),
FunctionRequiresAtLeastOneArgument(String),
EmptyArgNotAllowedInConcat,
LcmResultOutOfRange,
GcdLcmOverflow(i64),
I64ToU32ConversionFailure(String),
}
Variants§
FormatParseError(ParseError)
LiteralAddOnNonNumeric
FunctionRequiresStringValue(String)
FunctionRequiresIntegerOrStringValue(String)
FunctionRequiresIntegerValue(String)
FunctionRequiresFloatOrIntegerValue(String)
FunctionRequiresUSizeValue(String)
FunctionRequiresFloatValue(String)
ExtractFormatNotMatched(String)
FunctionRequiresMapValue(String)
FunctionRequiresPointValue(String)
FunctionRequiresDateOrDateTimeValue(String)
FunctionRequiresStrOrListOrMapValue(String)
IdentifierNotFound(String)
CompoundIdentifierNotFound
BooleanTypeRequired(String)
MapOrListTypeRequired
MapTypeRequired
ListTypeRequired
InvalidSortType
InvalidSortOrder
MapOrStringValueRequired(String)
TextLiteralRequired(String)
UnsupportedStatelessExpr(Expr)
ContextRequiredForIdentEvaluation(Expr)
UnreachableEmptyAggregateValue(Aggregate)
FilterContextRequiredForAggregate(Aggregate)
IncompatibleBitOperation(String, String)
DivisorShouldNotBeZero
NegativeSubstrLenNotAllowed
MoreThanOneRowReturned
MoreThanOneColumnReturned
SchemalessProjectionForInSubQuery
SchemalessProjectionForSubQuery
UnsupportedExprForFormatFunction(String)
AsciiFunctionRequiresSingleCharacterValue
NonAsciiCharacterNotAllowed
ChrFunctionRequiresIntegerValueInRange0To255
UnsupportedBinaryOperation
UnsupportedUnaryPlus(String)
UnsupportedUnaryMinus(String)
UnsupportedUnaryFactorial(String)
IncompatibleUnaryBitwiseNotOperation(String)
UnsupportedCustomFunction
FunctionRequiresMoreArguments
FunctionArgsLengthNotWithinRange
UnsupportedFunction(String)
NonComparableArgumentError(String)
FunctionRequiresAtLeastOneArgument(String)
EmptyArgNotAllowedInConcat
LcmResultOutOfRange
GcdLcmOverflow(i64)
I64ToU32ConversionFailure(String)
Trait Implementations§
Source§impl Debug for EvaluateError
impl Debug for EvaluateError
Source§impl Display for EvaluateError
impl Display for EvaluateError
Source§impl Error for EvaluateError
impl Error for EvaluateError
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 From<EvaluateError> for Error
impl From<EvaluateError> for Error
Source§fn from(source: EvaluateError) -> Self
fn from(source: EvaluateError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for EvaluateError
impl From<ParseError> for EvaluateError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EvaluateError
impl PartialEq for EvaluateError
Source§impl Serialize for EvaluateError
impl Serialize for EvaluateError
impl Eq for EvaluateError
impl StructuralPartialEq for EvaluateError
Auto Trait Implementations§
impl Freeze for EvaluateError
impl RefUnwindSafe for EvaluateError
impl Send for EvaluateError
impl Sync for EvaluateError
impl Unpin for EvaluateError
impl UnwindSafe for EvaluateError
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<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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more