Skip to main content

Engine

Trait Engine 

Source
pub trait Engine {
    // Required methods
    fn name(&self) -> &'static str;
    fn check<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        text: &'life1 str,
        language_id: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Diagnostic>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn check<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, text: &'life1 str, language_id: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<Diagnostic>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§