pub struct Error<Nt, T>where
Nt: NonterminalValue,
T: TerminalValue,{
pub state: Vec<Symbol<Nt, T>>,
pub kind: ErrorKind<Nt>,
}
Expand description
Fields§
§state: Vec<Symbol<Nt, T>>
§kind: ErrorKind<Nt>
Implementations§
Source§impl<Nt, T> Error<Nt, T>where
Nt: NonterminalValue,
T: TerminalValue,
impl<Nt, T> Error<Nt, T>where
Nt: NonterminalValue,
T: TerminalValue,
pub fn nonterm_expansion_failed( state: Vec<Symbol<Nt, T>>, expanded_nonterm_value: Nt, ) -> Self
pub fn max_iterations_reached( state: Vec<Symbol<Nt, T>>, iterations: usize, ) -> Self
Trait Implementations§
Source§impl<Nt, T> Debug for Error<Nt, T>where
Nt: NonterminalValue,
T: TerminalValue,
impl<Nt, T> Debug for Error<Nt, T>where
Nt: NonterminalValue,
T: TerminalValue,
Source§impl<Nt, T> Display for Error<Nt, T>where
Nt: NonterminalValue,
T: TerminalValue,
impl<Nt, T> Display for Error<Nt, T>where
Nt: NonterminalValue,
T: TerminalValue,
Source§impl<Nt, T> Error for Error<Nt, T>where
Nt: NonterminalValue,
T: TerminalValue,
impl<Nt, T> Error for Error<Nt, T>where
Nt: NonterminalValue,
T: TerminalValue,
1.30.0 · 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()
Auto Trait Implementations§
impl<Nt, T> Freeze for Error<Nt, T>where
Nt: Freeze,
impl<Nt, T> RefUnwindSafe for Error<Nt, T>where
Nt: RefUnwindSafe,
T: RefUnwindSafe,
impl<Nt, T> Send for Error<Nt, T>
impl<Nt, T> Sync for Error<Nt, T>
impl<Nt, T> Unpin for Error<Nt, T>
impl<Nt, T> UnwindSafe for Error<Nt, T>where
Nt: UnwindSafe,
T: 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