[][src]Enum sm_ext::ParamType

#[repr(C)]
pub enum ParamType {
    Any,
    Cell,
    Float,
    String,
    Array,
    VarArgs,
    CellByRef,
    FloatByRef,
}

Describes the various ways to pass parameters to plugins.

Variants

Any

Any data type can be pushed

Cell

Only basic cells can be pushed

Float

Only floats can be pushed

String

Only strings can be pushed

Array

Only arrays can be pushed

VarArgs

Same as "..." in plugins, anything can be pushed, but it will always be byref

CellByRef

Only a cell by reference can be pushed

FloatByRef

Only a float by reference can be pushed

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

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

type Error = <U as TryFromPlugin<'ctx, T>>::Error