pub trait TryIntoPlugin<'ctx, T = cell_t>: Sized {
type Error;
// Required method
fn try_into_plugin(
self,
ctx: &'ctx IPluginContext,
) -> Result<T, Self::Error>;
}Expand description
Trait to support conversions to/from cell_t that require an IPluginContext for access to plugin memory.
As with Rust’s TryInto and TryFrom, this is implemented automatically
for types that implement TryFromPlugin which you should prefer to implement instead.
Required Associated Types§
Required Methods§
fn try_into_plugin(self, ctx: &'ctx IPluginContext) -> Result<T, 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.