#[non_exhaustive]pub enum QueryExecutionError {
Show 39 variants
ObjectIndexByNonString(Value),
ArrayIndexByNonInt(Value),
SliceByNonInt(Value),
IterateOnNonIterable(Value),
IndexOnNonIndexable(Value),
SliceOnNonArrayNorString(Value),
NonIntegralNumber(Number),
UnaryOnNonNumeric(&'static str, Value),
IncompatibleBinaryOperator(&'static str, Value, Value),
StringRepeatByNonUSize(Number),
DivModByZero,
ObjectNonStringKey(Value),
InvalidPathError(Value),
Breaking(LabelId),
PathNotArray(Value),
InvalidIndex(Value),
InvalidIndexing(Value, Value),
ExpectedAnArray(Value),
InvalidSlicing(Value),
UnboundedRange,
InvalidAsBase64(DecodeError),
InvalidUTF8Bytes(FromUtf8Error),
InvalidNumberAsChar(Number),
InvalidUTF8ByteLength(Value),
InvalidArgType(&'static str, Value),
InvalidStringToNumber(Rc<String>),
InvalidJson(Rc<String>),
LengthMismatch(&'static str),
UnknownStringFormatter(Rc<String>),
DateTimeParseError(Rc<String>),
DateTimeFormatError(Rc<String>),
InvalidDateTime(ComponentRange),
IndeterminateOffset(IndeterminateOffset),
TimeZoneLookupFailure(Rc<String>),
OnigurumaCompileError(Error),
InvalidRegexFlag(char),
InputError(InputError),
NoMoreInputError,
UserDefinedError(Value),
}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.
ObjectIndexByNonString(Value)
ArrayIndexByNonInt(Value)
SliceByNonInt(Value)
IterateOnNonIterable(Value)
IndexOnNonIndexable(Value)
SliceOnNonArrayNorString(Value)
NonIntegralNumber(Number)
UnaryOnNonNumeric(&'static str, Value)
IncompatibleBinaryOperator(&'static str, Value, Value)
StringRepeatByNonUSize(Number)
DivModByZero
ObjectNonStringKey(Value)
InvalidPathError(Value)
Breaking(LabelId)
PathNotArray(Value)
InvalidIndex(Value)
InvalidIndexing(Value, Value)
ExpectedAnArray(Value)
InvalidSlicing(Value)
UnboundedRange
InvalidAsBase64(DecodeError)
InvalidUTF8Bytes(FromUtf8Error)
InvalidNumberAsChar(Number)
InvalidUTF8ByteLength(Value)
InvalidArgType(&'static str, Value)
InvalidStringToNumber(Rc<String>)
InvalidJson(Rc<String>)
LengthMismatch(&'static str)
UnknownStringFormatter(Rc<String>)
DateTimeParseError(Rc<String>)
DateTimeFormatError(Rc<String>)
InvalidDateTime(ComponentRange)
IndeterminateOffset(IndeterminateOffset)
TimeZoneLookupFailure(Rc<String>)
OnigurumaCompileError(Error)
InvalidRegexFlag(char)
InputError(InputError)
NoMoreInputError
UserDefinedError(Value)
Trait Implementations§
Source§impl Debug for QueryExecutionError
impl Debug for QueryExecutionError
Source§impl Display for QueryExecutionError
impl Display for QueryExecutionError
Source§impl Error for QueryExecutionError
impl Error for QueryExecutionError
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<ComponentRange> for QueryExecutionError
impl From<ComponentRange> for QueryExecutionError
Source§fn from(source: ComponentRange) -> Self
fn from(source: ComponentRange) -> Self
Converts to this type from the input type.
Source§impl From<DecodeError> for QueryExecutionError
impl From<DecodeError> for QueryExecutionError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for QueryExecutionError
impl From<Error> for QueryExecutionError
Source§impl From<Error> for QueryExecutionError
impl From<Error> for QueryExecutionError
Source§impl From<FormatError> for QueryExecutionError
impl From<FormatError> for QueryExecutionError
Source§fn from(e: FormatError) -> Self
fn from(e: FormatError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for QueryExecutionError
impl From<FromUtf8Error> for QueryExecutionError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<IndeterminateOffset> for QueryExecutionError
impl From<IndeterminateOffset> for QueryExecutionError
Source§fn from(source: IndeterminateOffset) -> Self
fn from(source: IndeterminateOffset) -> Self
Converts to this type from the input type.
Source§impl From<InputError> for QueryExecutionError
impl From<InputError> for QueryExecutionError
Source§fn from(source: InputError) -> Self
fn from(source: InputError) -> Self
Converts to this type from the input type.
Source§impl From<Parse> for QueryExecutionError
impl From<Parse> for QueryExecutionError
Source§impl From<ParseError> for QueryExecutionError
impl From<ParseError> for QueryExecutionError
Source§fn from(e: ParseError) -> Self
fn from(e: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<QueryExecutionError> for XQError
impl From<QueryExecutionError> for XQError
Source§fn from(source: QueryExecutionError) -> Self
fn from(source: QueryExecutionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for QueryExecutionError
impl !RefUnwindSafe for QueryExecutionError
impl !Send for QueryExecutionError
impl !Sync for QueryExecutionError
impl Unpin for QueryExecutionError
impl !UnwindSafe for QueryExecutionError
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<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