pub struct LanguageRegistration {
pub language: &'static str,
pub factory: fn() -> Arc<dyn LanguageRendererFactory>,
}Expand description
Registration entry for auto-discovered language renderers.
Fields§
§language: &'static strTarget language name (e.g. "python").
factory: fn() -> Arc<dyn LanguageRendererFactory>Factory function that constructs the language renderer factory.
Implementations§
Trait Implementations§
impl Collect for LanguageRegistration
Auto Trait Implementations§
impl Forget for LanguageRegistration
impl Freeze for LanguageRegistration
impl Move for LanguageRegistration
impl RefUnwindSafe for LanguageRegistration
impl Send for LanguageRegistration
impl Sync for LanguageRegistration
impl Unpin for LanguageRegistration
impl UnsafeUnpin for LanguageRegistration
impl UnwindSafe for LanguageRegistration
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