pub struct AdapterRegistry { /* private fields */ }Expand description
Default in-process registry.
Implementations§
Source§impl AdapterRegistry
impl AdapterRegistry
pub fn new(adapters: Vec<Box<dyn LanguageAdapter>>) -> Self
pub fn with_defaults() -> Self
Trait Implementations§
Source§impl LanguageRegistry for AdapterRegistry
impl LanguageRegistry for AdapterRegistry
fn supported(&self) -> Vec<LanguageId>
fn get(&self, id: &LanguageId) -> Option<&dyn LanguageAdapter>
Auto Trait Implementations§
impl !RefUnwindSafe for AdapterRegistry
impl !UnwindSafe for AdapterRegistry
impl Freeze for AdapterRegistry
impl Send for AdapterRegistry
impl Sync for AdapterRegistry
impl Unpin for AdapterRegistry
impl UnsafeUnpin for AdapterRegistry
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