pub trait TryFromPlugin<'ctx, T = cell_t>: Sized {
type Error;
// Required method
fn try_from_plugin(
ctx: &'ctx IPluginContext,
value: T,
) -> Result<Self, Self::Error>;
}
Expand description
Trait to support conversions to/from cell_t
that require an IPluginContext
for access to plugin memory.
Required Associated Types§
Required Methods§
fn try_from_plugin( ctx: &'ctx IPluginContext, value: T, ) -> Result<Self, Self::Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.