Struct arma_rs::Handler

source ·
pub struct Handler {
    pub handler: Box<dyn Fn(Context, *mut c_char, size_t, Option<*mut *mut i8>, Option<c_int>) -> c_int>,
}
Expand description

A wrapper for HandlerFunc

Fields§

§handler: Box<dyn Fn(Context, *mut c_char, size_t, Option<*mut *mut i8>, Option<c_int>) -> c_int>

The function to call

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.