Struct ami::void_pointer::VoidPointer
[−]
[src]
#[repr(C)]pub struct VoidPointer { /* fields omitted */ }
A type that represents a void* in C.
Methods
impl VoidPointer[src]
fn as_int(&self) -> u64
Return the pointer as an integer.
fn as_type<T>(&self) -> TypePointer<T>
Cast to a TypePointer for indexing or dereferencing.
Trait Implementations
impl Copy for VoidPointer[src]
impl Clone for VoidPointer[src]
fn clone(&self) -> VoidPointer
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 PartialEq for VoidPointer[src]
fn eq(&self, __arg_0: &VoidPointer) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &VoidPointer) -> bool
This method tests for !=.
impl<T> PointerCast<T> for VoidPointer[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 Add<u32> for VoidPointer[src]
type Output = VoidPointer
The resulting type after applying the + operator
fn add(self, other: u32) -> VoidPointer
The method for the + operator
impl Sub<u32> for VoidPointer[src]
type Output = VoidPointer
The resulting type after applying the - operator
fn sub(self, other: u32) -> VoidPointer
The method for the - operator
impl BitAnd<u32> for VoidPointer[src]
type Output = VoidPointer
The resulting type after applying the & operator
fn bitand(self, other: u32) -> VoidPointer
The method for the & operator
impl BitOr<u32> for VoidPointer[src]
type Output = VoidPointer
The resulting type after applying the | operator
fn bitor(self, other: u32) -> VoidPointer
The method for the | operator
impl BitXor<u32> for VoidPointer[src]
type Output = VoidPointer
The resulting type after applying the ^ operator
fn bitxor(self, other: u32) -> VoidPointer
The method for the ^ operator
impl Shr<usize> for VoidPointer[src]
type Output = VoidPointer
The resulting type after applying the >> operator
fn shr(self, rhs: usize) -> VoidPointer
The method for the >> operator
impl Shl<usize> for VoidPointer[src]
type Output = VoidPointer
The resulting type after applying the << operator
fn shl(self, rhs: usize) -> VoidPointer
The method for the << operator
impl Not for VoidPointer[src]
type Output = VoidPointer
The resulting type after applying the ! operator
fn not(self) -> VoidPointer
The method for the unary ! operator
impl Deref for VoidPointer[src]
type Target = u8
The resulting type after dereferencing
fn deref(&self) -> &u8
The method called to dereference a value
impl DerefMut for VoidPointer[src]
fn deref_mut(&mut self) -> &mut u8
The method called to mutably dereference a value
impl Index<usize> for VoidPointer[src]
type Output = u8
The returned type after indexing
fn index(&self, at: usize) -> &u8
The method for the indexing (container[index]) operation
impl IndexMut<usize> for VoidPointer[src]
fn index_mut(&mut self, at: usize) -> &mut u8
The method for the mutable indexing (container[index]) operation