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