Struct ami::void_pointer::TypePointer
[−]
[src]
#[repr(C)]pub struct TypePointer<T: ?Sized> where
T: , { /* fields omitted */ }
Deprecated since 0.4.0
: Use *mut Void instead.
A type that represents a T
* in C.
Methods
impl<T> TypePointer<T>
[src]
fn as_void(&self) -> VoidPointer
Deprecated since 0.4.0
: Use *mut Void instead.
Inverse of VoidPointer::as_type<T>()
unsafe fn copy_index(&self, index: usize) -> T
Deprecated since 0.4.0
: Use *mut Void instead.
fn swap_index(&mut self, index: usize, value: T) -> T
Deprecated since 0.4.0
: Use *mut Void instead.
Trait Implementations
impl<T: Copy + ?Sized> Copy for TypePointer<T> where
T: ,
[src]
T: ,
impl<T: Clone + ?Sized> Clone for TypePointer<T> where
T: ,
[src]
T: ,
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]
T: ,
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: Send> Send for TypePointer<T>
[src]
impl<T: Sync> Sync for TypePointer<T>
[src]
impl<T> PointerCast<T> for TypePointer<T>
[src]
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.
fn cast(&self) -> *mut T
Deprecated since 0.4.0
: Use *mut Void instead.
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