Trait ami::void_pointer::PointerCast [] [src]

pub trait PointerCast<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

Cast a VoidPointer to a native pointer of any type.

Cast a native pointer of any type to a VoidPointer.

Implementors