Trait ami::void_pointer::PointerCast
[−]
[src]
pub trait PointerCast<T> { fn cast(&self) -> *mut T; fn from(pointer: *mut T) -> VoidPointer; }
Deprecated since 0.4.0
: Use *mut Void instead.
A trait used for casting the void pointer to other pointer types.
Required Methods
fn cast(&self) -> *mut T
Deprecated since 0.4.0
: Use *mut Void instead.
Cast a VoidPointer to a native pointer of any type.
fn from(pointer: *mut T) -> VoidPointer
Deprecated since 0.4.0
: Use *mut Void instead.
Cast a native pointer of any type to a VoidPointer.
Implementors
impl<T> PointerCast<T> for VoidPointer
impl<T> PointerCast<T> for TypePointer<T>