Struct branchy::Error [−][src]
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
impl<Nt, T> Error<Nt, T> where
Nt: NonterminalValue,
T: TerminalValue,
[src]
impl<Nt, T> Error<Nt, T> where
Nt: NonterminalValue,
T: TerminalValue,
[src]#[must_use]pub fn nonterm_expansion_failed(
state: Vec<Symbol<Nt, T>>,
expanded_nonterm_value: Nt
) -> Self
[src]
#[must_use]
pub fn nonterm_expansion_failed(state: Vec<Symbol<Nt, T>>,
expanded_nonterm_value: Nt
) -> Self
#[must_use]pub fn max_iterations_reached(
state: Vec<Symbol<Nt, T>>,
iterations: usize
) -> Self
[src]
#[must_use]
pub fn max_iterations_reached(state: Vec<Symbol<Nt, T>>,
iterations: usize
) -> Self
Trait Implementations
impl<Nt, T> Debug for Error<Nt, T> where
Nt: NonterminalValue,
T: TerminalValue,
[src]
impl<Nt, T> Debug for Error<Nt, T> where
Nt: NonterminalValue,
T: TerminalValue,
[src]impl<Nt, T> Display for Error<Nt, T> where
Nt: NonterminalValue,
T: TerminalValue,
[src]
impl<Nt, T> Display for Error<Nt, T> where
Nt: NonterminalValue,
T: TerminalValue,
[src]impl<Nt, T> Error for Error<Nt, T> where
Nt: NonterminalValue,
T: TerminalValue,
[src]
impl<Nt, T> Error for Error<Nt, T> where
Nt: NonterminalValue,
T: TerminalValue,
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl<Nt, T> RefUnwindSafe for Error<Nt, T> where
Nt: RefUnwindSafe,
T: RefUnwindSafe,
Nt: RefUnwindSafe,
T: RefUnwindSafe,
impl<Nt, T> Send for Error<Nt, T> where
Nt: Send,
T: Send,
Nt: Send,
T: Send,
impl<Nt, T> Sync for Error<Nt, T> where
Nt: Sync,
T: Sync,
Nt: Sync,
T: Sync,
impl<Nt, T> Unpin for Error<Nt, T> where
Nt: Unpin,
T: Unpin,
Nt: Unpin,
T: Unpin,
impl<Nt, T> UnwindSafe for Error<Nt, T> where
Nt: UnwindSafe,
T: UnwindSafe,
Nt: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,