[−][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: &'ctx IPluginContext,
value: T
) -> Result<Self, Self::Error>
ctx: &'ctx IPluginContext,
value: T
) -> Result<Self, Self::Error>
Implementations on Foreign Types
impl<'ctx> TryFromPlugin<'ctx, cell_t> for &'ctx CStr
[src]
type Error = SPError
fn try_from_plugin(
ctx: &'ctx IPluginContext,
value: cell_t
) -> Result<Self, Self::Error>
[src]
ctx: &'ctx IPluginContext,
value: cell_t
) -> Result<Self, Self::Error>
impl<'ctx> TryFromPlugin<'ctx, cell_t> for &'ctx str
[src]
type Error = Box<dyn Error>
fn try_from_plugin(
ctx: &'ctx IPluginContext,
value: cell_t
) -> Result<Self, Self::Error>
[src]
ctx: &'ctx IPluginContext,
value: cell_t
) -> Result<Self, Self::Error>
impl<'ctx> TryFromPlugin<'ctx, cell_t> for &'ctx mut i32
[src]
type Error = SPError
fn try_from_plugin(
ctx: &'ctx IPluginContext,
value: cell_t
) -> Result<Self, Self::Error>
[src]
ctx: &'ctx IPluginContext,
value: cell_t
) -> Result<Self, Self::Error>
impl<'ctx> TryFromPlugin<'ctx, cell_t> for &'ctx mut f32
[src]
type Error = SPError
fn try_from_plugin(
ctx: &'ctx IPluginContext,
value: cell_t
) -> Result<Self, Self::Error>
[src]
ctx: &'ctx 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<'ctx> TryFromPlugin<'ctx, cell_t> for &'ctx mut cell_t
[src]
type Error = SPError
fn try_from_plugin(
ctx: &'ctx IPluginContext,
value: cell_t
) -> Result<Self, Self::Error>
[src]
ctx: &'ctx IPluginContext,
value: cell_t
) -> Result<Self, Self::Error>
impl<'ctx> TryFromPlugin<'ctx, cell_t> for IPluginFunction<'ctx>
[src]
type Error = GetFunctionError
fn try_from_plugin(
ctx: &'ctx IPluginContext,
value: cell_t
) -> Result<Self, Self::Error>
[src]
ctx: &'ctx IPluginContext,
value: cell_t
) -> Result<Self, Self::Error>
impl<'ctx, 'ty, T: HasHandleType> TryFromPlugin<'ctx, cell_t> for HandleRef<'ty, T>
[src]
type Error = HandleError
fn try_from_plugin(
ctx: &'ctx IPluginContext,
value: cell_t
) -> Result<Self, Self::Error>
[src]
ctx: &'ctx IPluginContext,
value: cell_t
) -> Result<Self, Self::Error>