[][src]Trait c_closures::FromClosureArgPointer

pub trait FromClosureArgPointer {
    unsafe fn from_arg_ptr(ptr: *const c_void) -> Self;
}

Provides a general purpose way to deref a structure from a C void pointer. Auto implemented for Copy types.

Required methods

unsafe fn from_arg_ptr(ptr: *const c_void) -> Self

Safety

Incorrect implementations of this trait may lead to undefined behavior. If you're trying to read out a pointer type, then the pointer passed to this trait is a pointer to your pointer, not the pointer itself.

Loading content...

Implementors

impl<T: Copy> FromClosureArgPointer for T[src]

Loading content...