pub struct PluginRegistration(pub &'static dyn LanguagePlugin);Expand description
A self-registered language plugin. Each plugin in the plugins crate submits one
via inventory::submit!; the binary’s registry is assembled by the linker, so
NO central code lists the plugins and no caller (the CLI) ever names a language.
Plugins are zero-sized unit structs, so a &'static reference is free.
Tuple Fields§
§0: &'static dyn LanguagePluginTrait Implementations§
impl Collect for PluginRegistration
Auto Trait Implementations§
impl !RefUnwindSafe for PluginRegistration
impl !UnwindSafe for PluginRegistration
impl Freeze for PluginRegistration
impl Send for PluginRegistration
impl Sync for PluginRegistration
impl Unpin for PluginRegistration
impl UnsafeUnpin for PluginRegistration
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