Enum yggdrasil_rt::errors::YggdrasilErrorKind
source · pub enum YggdrasilErrorKind<R> {
InvalidRule {
positives: Vec<R>,
negatives: Vec<R>,
},
InvalidNode {
expect: R,
},
InvalidTag(InvalidTag),
CustomError {
message: String,
},
}
Expand description
Different kinds of parsing errors.
Variants§
InvalidRule
Generated parsing error with expected and unexpected Rule
s
InvalidNode
Unable to convert given node to ast
Fields
§
expect: R
InvalidTag(InvalidTag)
CustomError
Custom error with a message
Trait Implementations§
source§impl<R: Clone> Clone for YggdrasilErrorKind<R>
impl<R: Clone> Clone for YggdrasilErrorKind<R>
source§fn clone(&self) -> YggdrasilErrorKind<R>
fn clone(&self) -> YggdrasilErrorKind<R>
Returns a copy 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<R: Debug> Debug for YggdrasilErrorKind<R>
impl<R: Debug> Debug for YggdrasilErrorKind<R>
source§impl<R: YggdrasilRule> Display for YggdrasilErrorKind<R>
impl<R: YggdrasilRule> Display for YggdrasilErrorKind<R>
source§impl<R: Hash> Hash for YggdrasilErrorKind<R>
impl<R: Hash> Hash for YggdrasilErrorKind<R>
source§impl<R: PartialEq> PartialEq for YggdrasilErrorKind<R>
impl<R: PartialEq> PartialEq for YggdrasilErrorKind<R>
source§fn eq(&self, other: &YggdrasilErrorKind<R>) -> bool
fn eq(&self, other: &YggdrasilErrorKind<R>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<R: Eq> Eq for YggdrasilErrorKind<R>
impl<R> StructuralPartialEq for YggdrasilErrorKind<R>
Auto Trait Implementations§
impl<R> Freeze for YggdrasilErrorKind<R>where
R: Freeze,
impl<R> RefUnwindSafe for YggdrasilErrorKind<R>where
R: RefUnwindSafe,
impl<R> Send for YggdrasilErrorKind<R>where
R: Send,
impl<R> Sync for YggdrasilErrorKind<R>where
R: Sync,
impl<R> Unpin for YggdrasilErrorKind<R>where
R: Unpin,
impl<R> UnwindSafe for YggdrasilErrorKind<R>where
R: UnwindSafe,
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