[][src]Trait sm_ext::TryFromPlugin

pub trait TryFromPlugin<'a, T = cell_t>: Sized {
    type Error;
    fn try_from_plugin(
        ctx: &'a 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: &'a IPluginContext,
    value: T
) -> Result<Self, Self::Error>

Loading content...

Implementations on Foreign Types

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

type Error = SPError

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

type Error = Box<dyn Error>

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

type Error = SPError

impl<'a> TryFromPlugin<'a, cell_t> for &'a 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<'a> TryFromPlugin<'a, cell_t> for &'a mut cell_t[src]

type Error = SPError

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

type Error = GetFunctionError

Loading content...