pub enum TypeQLError {
SyntaxErrorDetailed {
error_line_nr: usize,
error_col: usize,
formatted_error: String,
parser_error: String,
},
InvalidCasting {
enum_name: &'static str,
variant: &'static str,
expected_variant: &'static str,
typename: &'static str,
},
InvalidLiteral {
variant: &'static str,
expected_variant: &'static str,
},
InvalidStringEscape {
escape: String,
full_string: String,
},
ReservedKeywordAsIdentifier {
identifier: Identifier,
},
IllegalGrammar {
input: String,
},
InvalidTypeLabel {
label: String,
},
}Variants§
SyntaxErrorDetailed
InvalidCasting
Fields
InvalidLiteral
InvalidStringEscape
ReservedKeywordAsIdentifier
Fields
§
identifier: IdentifierIllegalGrammar
InvalidTypeLabel
Implementations§
Trait Implementations§
Source§impl Clone for TypeQLError
impl Clone for TypeQLError
Source§fn clone(&self) -> TypeQLError
fn clone(&self) -> TypeQLError
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 TypeQLError
impl Debug for TypeQLError
Source§impl Display for TypeQLError
impl Display for TypeQLError
Source§impl Error for TypeQLError
impl Error for TypeQLError
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<TypeQLError> for Error
impl From<TypeQLError> for Error
Source§fn from(error: TypeQLError) -> Self
fn from(error: TypeQLError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TypeQLError
impl PartialEq for TypeQLError
impl Eq for TypeQLError
impl StructuralPartialEq for TypeQLError
Auto Trait Implementations§
impl Freeze for TypeQLError
impl RefUnwindSafe for TypeQLError
impl Send for TypeQLError
impl Sync for TypeQLError
impl Unpin for TypeQLError
impl UnwindSafe for TypeQLError
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