Enum gluesql_core::executor::EvaluateError
source · pub enum EvaluateError {
Show 35 variants
FormatParseError(ParseError),
LiteralAddOnNonNumeric,
FunctionRequiresStringValue(String),
FunctionRequiresIntegerValue(String),
FunctionRequiresFloatOrIntegerValue(String),
FunctionRequiresUSizeValue(String),
FunctionRequiresFloatValue(String),
ExtractFormatNotMatched(String),
FunctionRequiresMapValue(String),
FunctionRequiresPointValue(String),
ValueNotFound(String),
BooleanTypeRequired(String),
MapOrListTypeRequired,
ListTypeRequired,
MapOrStringValueRequired(String),
TextLiteralRequired(String),
UnsupportedStatelessExpr(Expr),
ContextRequiredForIdentEvaluation(Expr),
UnreachableEmptyAggregateValue(Aggregate),
DivisorShouldNotBeZero,
NegativeSubstrLenNotAllowed,
MoreThanOneRowReturned,
SchemalessProjectionForInSubQuery,
SchemalessProjectionForSubQuery,
UnsupportedExprForFormatFunction(String),
AsciiFunctionRequiresSingleCharacterValue,
NonAsciiCharacterNotAllowed,
ChrFunctionRequiresIntegerValueInRange0To255,
UnsupportedBinaryArithmetic(String, String),
UnsupportedUnaryPlus(String),
UnsupportedUnaryMinus(String),
UnsupportedUnaryFactorial(String),
UnsupportedCustomFunction,
FunctionArgsLengthNotWithinRange {
name: String,
expected_minimum: usize,
expected_maximum: usize,
found: usize,
},
UnsupportedFunction(String),
}Variants§
FormatParseError(ParseError)
LiteralAddOnNonNumeric
FunctionRequiresStringValue(String)
FunctionRequiresIntegerValue(String)
FunctionRequiresFloatOrIntegerValue(String)
FunctionRequiresUSizeValue(String)
FunctionRequiresFloatValue(String)
ExtractFormatNotMatched(String)
FunctionRequiresMapValue(String)
FunctionRequiresPointValue(String)
ValueNotFound(String)
BooleanTypeRequired(String)
MapOrListTypeRequired
ListTypeRequired
MapOrStringValueRequired(String)
TextLiteralRequired(String)
UnsupportedStatelessExpr(Expr)
ContextRequiredForIdentEvaluation(Expr)
UnreachableEmptyAggregateValue(Aggregate)
DivisorShouldNotBeZero
NegativeSubstrLenNotAllowed
MoreThanOneRowReturned
SchemalessProjectionForInSubQuery
SchemalessProjectionForSubQuery
UnsupportedExprForFormatFunction(String)
AsciiFunctionRequiresSingleCharacterValue
NonAsciiCharacterNotAllowed
ChrFunctionRequiresIntegerValueInRange0To255
UnsupportedBinaryArithmetic(String, String)
UnsupportedUnaryPlus(String)
UnsupportedUnaryMinus(String)
UnsupportedUnaryFactorial(String)
UnsupportedCustomFunction
FunctionArgsLengthNotWithinRange
UnsupportedFunction(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)>
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<EvaluateError> for EvaluateError
impl PartialEq<EvaluateError> for EvaluateError
source§fn eq(&self, other: &EvaluateError) -> bool
fn eq(&self, other: &EvaluateError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for EvaluateError
impl Serialize for EvaluateError
impl Eq for EvaluateError
impl StructuralEq for EvaluateError
impl StructuralPartialEq for EvaluateError
Auto Trait Implementations§
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.