pub struct LanguageConfigRegistry { /* private fields */ }Expand description
Language configuration registry with storage integration
Implementations§
Source§impl LanguageConfigRegistry
impl LanguageConfigRegistry
pub fn new() -> Self
Sourcepub fn with_hierarchy() -> CompletionResult<Self>
pub fn with_hierarchy() -> CompletionResult<Self>
Create a registry and load configurations from storage hierarchy
pub fn register(&mut self, config: CompletionConfig)
pub fn get(&self, language: &str) -> Option<&CompletionConfig>
pub fn get_mut(&mut self, language: &str) -> Option<&mut CompletionConfig>
pub fn list_languages(&self) -> Vec<String>
pub fn unregister(&mut self, language: &str) -> Option<CompletionConfig>
pub fn load_from_directory(&mut self, dir: &Path) -> CompletionResult<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LanguageConfigRegistry
impl RefUnwindSafe for LanguageConfigRegistry
impl Send for LanguageConfigRegistry
impl Sync for LanguageConfigRegistry
impl Unpin for LanguageConfigRegistry
impl UnwindSafe for LanguageConfigRegistry
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