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_ipc_connected: fn(_: PluginHandle, _: &mut EditorContext, _: u32, _: PlatformIpcHandle),
pub on_ipc_output: fn(_: PluginHandle, _: &mut EditorContext, _: u32, _: &[u8]),
pub on_ipc_close: fn(_: PluginHandle, _: &mut EditorContext, _: u32),
pub on_keys: fn(_: PluginHandle, _: &mut EditorContext, client_handle: ClientHandle, keys: &mut KeysIterator) -> Option<EditorFlow>,
pub on_completion: fn(_: PluginHandle, _: &mut EditorContext, _: &CompletionContext) -> bool,
}
Returns the “default value” for a type.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.