pub struct Plugin {
pub data: Box<dyn Any>,
pub on_editor_events: fn(_: PluginHandle, _: &mut EditorContext),
pub on_process_spawned: fn(_: PluginHandle, _: &mut EditorContext, _: u32, _: PlatformProcessHandle),
pub on_process_output: fn(_: PluginHandle, _: &mut EditorContext, _: u32, _: &[u8]),
pub on_process_exit: fn(_: PluginHandle, _: &mut EditorContext, _: u32),
pub on_completion: fn(_: PluginHandle, _: &mut EditorContext, _: &CompletionContext) -> bool,
}
Returns the “default value” for a type. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.