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;
// Provided method
fn supported_languages(&self) -> Vec<&'static str> { ... }
}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,
Provided Methods§
Sourcefn supported_languages(&self) -> Vec<&'static str>
fn supported_languages(&self) -> Vec<&'static str>
BCP-47 primary subtags this engine supports. Empty = all languages.