[−][src]Trait sm_ext::TryFromPlugin
Trait to support conversions to/from cell_t that require an IPluginContext for access to plugin memory.
Associated Types
type Error
Required methods
fn try_from_plugin(
ctx: &'a IPluginContext,
value: T
) -> Result<Self, Self::Error>
ctx: &'a IPluginContext,
value: T
) -> Result<Self, Self::Error>
Implementations on Foreign Types
impl<'a> TryFromPlugin<'a, cell_t> for &'a CStr[src]
type Error = SPError
fn try_from_plugin(
ctx: &'a IPluginContext,
value: cell_t
) -> Result<Self, Self::Error>[src]
ctx: &'a IPluginContext,
value: cell_t
) -> Result<Self, Self::Error>
impl<'a> TryFromPlugin<'a, cell_t> for &'a str[src]
type Error = Box<dyn Error>
fn try_from_plugin(
ctx: &'a IPluginContext,
value: cell_t
) -> Result<Self, Self::Error>[src]
ctx: &'a IPluginContext,
value: cell_t
) -> Result<Self, Self::Error>
impl<'a> TryFromPlugin<'a, cell_t> for &'a mut i32[src]
type Error = SPError
fn try_from_plugin(
ctx: &'a IPluginContext,
value: cell_t
) -> Result<Self, Self::Error>[src]
ctx: &'a IPluginContext,
value: cell_t
) -> Result<Self, Self::Error>
impl<'a> TryFromPlugin<'a, cell_t> for &'a mut f32[src]
type Error = SPError
fn try_from_plugin(
ctx: &'a IPluginContext,
value: cell_t
) -> Result<Self, Self::Error>[src]
ctx: &'a IPluginContext,
value: cell_t
) -> Result<Self, Self::Error>
Implementors
impl<'_, T, U> TryFromPlugin<'_, T> for U where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = U::Error
fn try_from_plugin(ctx: &IPluginContext, value: T) -> Result<Self, Self::Error>[src]
impl<'a> TryFromPlugin<'a, cell_t> for &'a mut cell_t[src]
type Error = SPError
fn try_from_plugin(
ctx: &'a IPluginContext,
value: cell_t
) -> Result<Self, Self::Error>[src]
ctx: &'a IPluginContext,
value: cell_t
) -> Result<Self, Self::Error>
impl<'a> TryFromPlugin<'a, cell_t> for IPluginFunction[src]
type Error = GetFunctionError
fn try_from_plugin(
ctx: &'a IPluginContext,
value: cell_t
) -> Result<Self, Self::Error>[src]
ctx: &'a IPluginContext,
value: cell_t
) -> Result<Self, Self::Error>