[][src]Trait gluon_vm::gc::FromPtr

pub unsafe trait FromPtr<D> {
    unsafe fn make_ptr(data: D, ptr: *mut ()) -> *mut Self;
}

Trait which creates a typed pointer from a *mut () pointer. For Sized types this is just a cast but for unsized types some more metadata must be taken from the provided D value to make it initialize correctly.

Required methods

unsafe fn make_ptr(data: D, ptr: *mut ()) -> *mut Self

Loading content...

Implementations on Foreign Types

impl<'s, 't, T> FromPtr<&'s &'t [T]> for [T][src]

Loading content...

Implementors

impl<D, T> FromPtr<D> for T[src]

Loading content...