[][src]Struct sm_ext::NativeInfo

#[repr(C)]
pub struct NativeInfo {
    pub name: *const c_char,
    pub func: Option<unsafe extern "C" fn(ctx: IPluginContextPtr, args: *const cell_t) -> cell_t>,
}

Struct to contain name/fnptr pairs for native registration.

SourceMod has very strict lifetime requirements for this data and you should not construct instances of this type yourself - use the register_natives! macro instead.

Fields

name: *const c_charfunc: Option<unsafe extern "C" fn(ctx: IPluginContextPtr, args: *const cell_t) -> cell_t>

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