[][src]Trait sm_ext::TryIntoPlugin

pub trait TryIntoPlugin<'ctx, T = cell_t>: Sized {
    type Error;
    fn try_into_plugin(
        self,
        ctx: &'ctx IPluginContext
    ) -> Result<T, Self::Error>; }

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.

Associated Types

type Error

Loading content...

Required methods

fn try_into_plugin(self, ctx: &'ctx IPluginContext) -> Result<T, Self::Error>

Loading content...

Implementors

impl<'ctx, T, U> TryIntoPlugin<'ctx, U> for T where
    U: TryFromPlugin<'ctx, T>, 
[src]

type Error = U::Error

Loading content...