Struct erl_nif_sys::enif_func_t
source · [−]#[repr(C)]pub struct enif_func_t {
pub name: *const c_char,
pub arity: c_uint,
pub fptr: Option<unsafe extern "C" fn(env: *mut ErlNifEnv, argc: c_int, argv: *const ERL_NIF_TERM) -> ERL_NIF_TERM>,
pub flags: c_uint,
}
Fields
name: *const c_char
arity: c_uint
fptr: Option<unsafe extern "C" fn(env: *mut ErlNifEnv, argc: c_int, argv: *const ERL_NIF_TERM) -> ERL_NIF_TERM>
flags: c_uint
Trait Implementations
sourceimpl Clone for enif_func_t
impl Clone for enif_func_t
sourcefn clone(&self) -> enif_func_t
fn clone(&self) -> enif_func_t
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for enif_func_t
impl Debug for enif_func_t
impl Copy for enif_func_t
Auto Trait Implementations
impl RefUnwindSafe for enif_func_t
impl !Send for enif_func_t
impl !Sync for enif_func_t
impl Unpin for enif_func_t
impl UnwindSafe for enif_func_t
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more