[−][src]Struct antlr_rust::DefaultErrorStrategy
This is the default implementation of ErrorStrategy
used for
error reporting and recovery in ANTLR parsers.
Implementations
impl<'input, Ctx: ParserNodeType<'input>> DefaultErrorStrategy<'input, Ctx>
[src]
Trait Implementations
impl<'input, Ctx: Debug + ParserNodeType<'input>> Debug for DefaultErrorStrategy<'input, Ctx> where
Ctx::Type: Debug,
[src]
Ctx::Type: Debug,
impl<'input, Ctx: ParserNodeType<'input>> Default for DefaultErrorStrategy<'input, Ctx>
[src]
impl<'a, T: Parser<'a>> ErrorStrategy<'a, T> for DefaultErrorStrategy<'a, T::Node>
[src]
pub fn reset(&mut self, recognizer: &mut T)
[src]
pub fn recover_inline(
&mut self,
recognizer: &mut T
) -> Result<<T::TF as TokenFactory<'a>>::Tok, ANTLRError>
[src]
&mut self,
recognizer: &mut T
) -> Result<<T::TF as TokenFactory<'a>>::Tok, ANTLRError>
pub fn recover(
&mut self,
recognizer: &mut T,
_e: &ANTLRError
) -> Result<(), ANTLRError>
[src]
&mut self,
recognizer: &mut T,
_e: &ANTLRError
) -> Result<(), ANTLRError>
pub fn sync(&mut self, recognizer: &mut T) -> Result<(), ANTLRError>
[src]
pub fn in_error_recovery_mode(&mut self, _recognizer: &mut T) -> bool
[src]
pub fn report_error(&mut self, recognizer: &mut T, e: &ANTLRError)
[src]
pub fn report_match(&mut self, recognizer: &mut T)
[src]
impl<'input, Ctx: ParserNodeType<'input>> TidAble<'input> for DefaultErrorStrategy<'input, Ctx> where
Ctx: TidAble<'input>,
[src]
Ctx: TidAble<'input>,
Auto Trait Implementations
impl<'input, Ctx> !RefUnwindSafe for DefaultErrorStrategy<'input, Ctx>
[src]
impl<'input, Ctx> !Send for DefaultErrorStrategy<'input, Ctx>
[src]
impl<'input, Ctx> !Sync for DefaultErrorStrategy<'input, Ctx>
[src]
impl<'input, Ctx> Unpin for DefaultErrorStrategy<'input, Ctx>
[src]
impl<'input, Ctx> UnwindSafe for DefaultErrorStrategy<'input, Ctx> where
<Ctx as ParserNodeType<'input>>::Type: RefUnwindSafe,
[src]
<Ctx as ParserNodeType<'input>>::Type: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> NodeText for T
[src]
impl<'a, T> Tid<'a> for T where
T: TidAble<'a> + ?Sized,
[src]
T: TidAble<'a> + ?Sized,
impl<'a, X> TidExt<'a> for X where
X: Tid<'a> + ?Sized,
[src]
X: Tid<'a> + ?Sized,
pub fn is<T>(&self) -> bool where
T: Tid<'a>,
[src]
T: Tid<'a>,
pub fn downcast_ref<T>(&'b self) -> Option<&'b T> where
T: Tid<'a>,
[src]
T: Tid<'a>,
pub fn downcast_mut<T>(&'b mut self) -> Option<&'b mut T> where
T: Tid<'a>,
[src]
T: Tid<'a>,
pub fn downcast_rc<T>(self: Rc<X>) -> Result<Rc<T>, Rc<X>> where
T: Tid<'a>,
[src]
T: Tid<'a>,
pub fn downcast_arc<T>(self: Arc<X>) -> Result<Arc<T>, Arc<X>> where
T: Tid<'a>,
[src]
T: Tid<'a>,
pub fn downcast_box<T>(
self: Box<X, Global>
) -> Result<Box<T, Global>, Box<X, Global>> where
T: Tid<'a>,
[src]
self: Box<X, Global>
) -> Result<Box<T, Global>, Box<X, Global>> where
T: Tid<'a>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,