Skip to main content

RecoverableError

Trait RecoverableError 

Source
pub trait RecoverableError<ET: EngineTypes>: Sized {
    // Required method
    fn recover<M: Mouth<ET>, Err>(
        self,
        aux: &EngineAux<ET>,
        state: &ET::State,
        mouth: &mut M,
    ) -> Result<(), Err>
       where Self: IntoErr<ET, Err>;

    // Provided method
    fn throw<M: Mouth<ET>>(
        self,
        aux: &EngineAux<ET>,
        state: &ET::State,
        mouth: &mut M,
    ) -> Result<(), TeXError<ET>>
       where Self: IntoErr<ET, TeXError<ET>> { ... }
}

Required Methods§

Source

fn recover<M: Mouth<ET>, Err>( self, aux: &EngineAux<ET>, state: &ET::State, mouth: &mut M, ) -> Result<(), Err>
where Self: IntoErr<ET, Err>,

§Errors

because that’s what it’s supposed to do

Provided Methods§

Source

fn throw<M: Mouth<ET>>( self, aux: &EngineAux<ET>, state: &ET::State, mouth: &mut M, ) -> Result<(), TeXError<ET>>
where Self: IntoErr<ET, TeXError<ET>>,

§Errors

because that’s what it’s supposed to do

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§