[][src]Trait sm_ext::TryFromPlugin

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

Trait to support conversions to/from cell_t that require an IPluginContext for access to plugin memory.

Associated Types

type Error

Loading content...

Required methods

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

Loading content...

Implementations on Foreign Types

impl<'ctx> TryFromPlugin<'ctx, cell_t> for &'ctx CStr[src]

type Error = SPError

impl<'ctx> TryFromPlugin<'ctx, cell_t> for &'ctx str[src]

type Error = Box<dyn Error>

impl<'ctx> TryFromPlugin<'ctx, cell_t> for &'ctx mut i32[src]

type Error = SPError

impl<'ctx> TryFromPlugin<'ctx, cell_t> for &'ctx mut f32[src]

type Error = SPError

Loading content...

Implementors

impl<'_, T, U> TryFromPlugin<'_, T> for U where
    U: TryFrom<T>, 
[src]

type Error = U::Error

impl<'ctx> TryFromPlugin<'ctx, cell_t> for &'ctx mut cell_t[src]

type Error = SPError

impl<'ctx> TryFromPlugin<'ctx, cell_t> for IPluginFunction<'ctx>[src]

type Error = GetFunctionError

impl<'ctx, 'ty, T: HasHandleType> TryFromPlugin<'ctx, cell_t> for HandleRef<'ty, T>[src]

type Error = HandleError

Loading content...