Enum gluesql::core::error::LiteralError
source · pub enum LiteralError {
UnsupportedBinaryOperation {
left: String,
op: BinaryOperator,
right: String,
},
BitwiseNonIntegerOperand(String),
BitwiseNonNumberLiteral,
BitwiseOperationOverflow,
ImpossibleConversion(String, String),
DivisorShouldNotBeZero,
UnaryOperationOnNonNumeric,
UnreachableBinaryArithmetic,
UnreachableUnaryOperation,
FailedToDecodeHexString(String),
LikeOnNonString {
base: String,
pattern: String,
case_sensitive: bool,
},
}
Variants§
UnsupportedBinaryOperation
BitwiseNonIntegerOperand(String)
BitwiseNonNumberLiteral
BitwiseOperationOverflow
ImpossibleConversion(String, String)
DivisorShouldNotBeZero
UnaryOperationOnNonNumeric
UnreachableBinaryArithmetic
UnreachableUnaryOperation
FailedToDecodeHexString(String)
LikeOnNonString
Trait Implementations§
source§impl Debug for LiteralError
impl Debug for LiteralError
source§impl Display for LiteralError
impl Display for LiteralError
source§impl Error for LiteralError
impl Error for LiteralError
1.30.0 · 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<LiteralError> for Error
impl From<LiteralError> for Error
source§fn from(source: LiteralError) -> Error
fn from(source: LiteralError) -> Error
Converts to this type from the input type.
source§impl PartialEq for LiteralError
impl PartialEq for LiteralError
source§fn eq(&self, other: &LiteralError) -> bool
fn eq(&self, other: &LiteralError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LiteralError
impl Serialize for LiteralError
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for LiteralError
impl StructuralEq for LiteralError
impl StructuralPartialEq for LiteralError
Auto Trait Implementations§
impl RefUnwindSafe for LiteralError
impl Send for LiteralError
impl Sync for LiteralError
impl Unpin for LiteralError
impl UnwindSafe for LiteralError
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.