pub enum Error {
Syntax(ParseError),
Parse(ParseError, Span),
}Expand description
A failure at the syntax or parse stage.
Variants§
Syntax(ParseError)
The syntax layer (Muon) rejected the input.
Parse(ParseError, Span)
The input is a valid Muon tree but not a valid Elly program (this subset), with the span of the source the error is about.
Implementations§
Trait Implementations§
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !Sync for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more