pub struct LanguageRegistry { /* private fields */ }Implementations§
Source§impl LanguageRegistry
impl LanguageRegistry
pub fn new() -> Self
pub fn register<P>(&mut self, plugin: P) -> Result<()>where
P: LanguagePlugin + 'static,
pub fn supported_extensions(&self) -> Vec<String>
pub fn plugin_for_extension( &self, extension: &str, ) -> Option<Arc<dyn LanguagePlugin>>
pub fn plugin_for_path(&self, path: &Path) -> Result<Arc<dyn LanguagePlugin>>
pub fn plugins(&self) -> &[Arc<dyn LanguagePlugin>]
pub fn collect_classifiers(&self) -> Vec<Box<dyn Classifier>>
pub fn collect_graph_passes(&self) -> Vec<Box<dyn GraphPass>>
pub fn prepare_plugins(&self, context: &ProjectContext) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LanguageRegistry
impl !RefUnwindSafe for LanguageRegistry
impl Send for LanguageRegistry
impl Sync for LanguageRegistry
impl Unpin for LanguageRegistry
impl UnsafeUnpin for LanguageRegistry
impl !UnwindSafe for LanguageRegistry
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