pub struct GrammarManager { /* private fields */ }Expand description
Grammar manager that handles both static and dynamic grammars
Implementations§
Source§impl GrammarManager
impl GrammarManager
Sourcepub fn get_language(
&mut self,
language_name: &str,
grammar_config: &GrammarConfig,
) -> Result<Language>
pub fn get_language( &mut self, language_name: &str, grammar_config: &GrammarConfig, ) -> Result<Language>
Get a language by name, using configuration to determine source
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GrammarManager
impl RefUnwindSafe for GrammarManager
impl Send for GrammarManager
impl Sync for GrammarManager
impl Unpin for GrammarManager
impl UnwindSafe for GrammarManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more