Struct ami::void_pointer::TypePointer
[−]
[src]
#[repr(C)]pub struct TypePointer<T: ?Sized> where T: { /* fields omitted */ }
A type that represents a T* in C.
Trait Implementations
impl<T: Copy + ?Sized> Copy for TypePointer<T> where T: [src]
impl<T: Clone + ?Sized> Clone for TypePointer<T> where T: [src]
fn clone(&self) -> TypePointer<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl<T: PartialEq + ?Sized> PartialEq for TypePointer<T> where T: [src]
fn eq(&self, __arg_0: &TypePointer<T>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &TypePointer<T>) -> bool
This method tests for !=.
impl<T> PointerCast<T> for TypePointer<T>[src]
fn from(pointer: *mut T) -> VoidPointer
Cast a native pointer of any type to a VoidPointer.
fn cast(&self) -> *mut T
Cast a VoidPointer to a native pointer of any type.
impl<T> Deref for TypePointer<T>[src]
type Target = T
The resulting type after dereferencing
fn deref(&self) -> &Self::Target
The method called to dereference a value
impl<T> DerefMut for TypePointer<T>[src]
impl<T> Index<usize> for TypePointer<T>[src]
type Output = T
The returned type after indexing
fn index(&self, at: usize) -> &Self::Output
The method for the indexing (container[index]) operation