pub enum PQLErrorKind {
Show 17 variants
SyntaxError(Error),
ParseError(ParseError),
RangeError(Error),
Internal(InternalError),
Runtime(RuntimeError),
UnrecognizedFunction,
UnrecognizedIdentifier,
ExceededMaximumPlayers(usize),
InvalidPlayer,
InvalidDeadcards,
InvalidCardCount,
TypeError(PQLType, PQLType),
WrongNumberOfArguments(usize, usize),
SamplingFailed,
ArithmeticOperationUnsupported(PQLType, PQLType),
ComparisonOperationUnsupported(PQLType, PQLType),
VmErr(VmError),
}Variants§
SyntaxError(Error)
ParseError(ParseError)
RangeError(Error)
Internal(InternalError)
Runtime(RuntimeError)
UnrecognizedFunction
UnrecognizedIdentifier
ExceededMaximumPlayers(usize)
InvalidPlayer
InvalidDeadcards
InvalidCardCount
TypeError(PQLType, PQLType)
WrongNumberOfArguments(usize, usize)
SamplingFailed
ArithmeticOperationUnsupported(PQLType, PQLType)
ComparisonOperationUnsupported(PQLType, PQLType)
VmErr(VmError)
Trait Implementations§
Source§impl Clone for PQLErrorKind
impl Clone for PQLErrorKind
Source§fn clone(&self) -> PQLErrorKind
fn clone(&self) -> PQLErrorKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PQLErrorKind
impl Debug for PQLErrorKind
Source§impl From<Error> for PQLErrorKind
impl From<Error> for PQLErrorKind
Source§fn from(value: SyntaxError) -> Self
fn from(value: SyntaxError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for PQLErrorKind
impl From<Error> for PQLErrorKind
Source§fn from(value: RangeError) -> Self
fn from(value: RangeError) -> Self
Converts to this type from the input type.
Source§impl From<InternalError> for PQLErrorKind
impl From<InternalError> for PQLErrorKind
Source§fn from(value: InternalError) -> Self
fn from(value: InternalError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for PQLErrorKind
impl From<ParseError> for PQLErrorKind
Source§fn from(value: ParseError) -> Self
fn from(value: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<RuntimeError> for PQLErrorKind
impl From<RuntimeError> for PQLErrorKind
Source§fn from(value: RuntimeError) -> Self
fn from(value: RuntimeError) -> Self
Converts to this type from the input type.
Source§impl From<VmError> for PQLErrorKind
impl From<VmError> for PQLErrorKind
Source§impl From<usize> for PQLErrorKind
impl From<usize> for PQLErrorKind
Source§impl PartialEq for PQLErrorKind
impl PartialEq for PQLErrorKind
impl Eq for PQLErrorKind
impl StructuralPartialEq for PQLErrorKind
Auto Trait Implementations§
impl Freeze for PQLErrorKind
impl RefUnwindSafe for PQLErrorKind
impl Send for PQLErrorKind
impl Sync for PQLErrorKind
impl Unpin for PQLErrorKind
impl UnwindSafe for PQLErrorKind
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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