[][src]Struct intptr::IntPtr32

#[repr(transparent)]pub struct IntPtr32<T: ?Sized = ()> { /* fields omitted */ }

Unmanaged 32-bit typed pointer.

Implementations

impl<T: ?Sized> IntPtr32<T>[src]

pub const NULL: IntPtr32<T>[src]

Null pointer constant.

pub const fn new() -> IntPtr32<T>[src]

Creates a null pointer.

pub const fn from_raw(address: u32) -> IntPtr32<T>[src]

Creates a pointer from its address.

pub const fn member(address: u32, offset: u32) -> IntPtr32<T>[src]

Constructs a pointer with an offset.

pub const fn is_null(self) -> bool[src]

Returns true if the pointer is null.

pub const fn cast<U: ?Sized>(self) -> IntPtr32<U>[src]

Casts the pointer to a different type keeping the pointer address fixed.

pub const fn field<U: ?Sized>(self, offset: u32) -> IntPtr32<U>[src]

Offsets the pointer to a field.

pub const fn offset<U: ?Sized>(self, offset: i32) -> IntPtr32<U>[src]

Offsets the pointer and cast.

pub const fn into_raw(self) -> u32[src]

Returns the raw integer, type ascription helper.

pub const fn fmt(self) -> [u8; 10][src]

Formats the pointer.

impl<T> IntPtr32<[T]>[src]

pub const fn decay(self) -> IntPtr32<T>[src]

Decays the pointee from [T] to T.

pub const fn at(self, i: usize) -> IntPtr32<T>[src]

Pointer arithmetic, gets the pointer of an element at the specified index.

Trait Implementations

impl<T> Add<usize> for IntPtr32<T>[src]

type Output = IntPtr32<T>

The resulting type after applying the + operator.

impl<T: ?Sized> AsMut<u32> for IntPtr32<T>[src]

impl<T: ?Sized> AsRef<u32> for IntPtr32<T>[src]

impl<T: ?Sized> Clone for IntPtr32<T>[src]

impl<T: ?Sized> Copy for IntPtr32<T>[src]

impl<T: ?Sized> Debug for IntPtr32<T>[src]

impl<T: ?Sized> Default for IntPtr32<T>[src]

impl<T: ?Sized> Display for IntPtr32<T>[src]

impl<T: ?Sized> Eq for IntPtr32<T>[src]

impl<T: ?Sized> From<IntPtr32<T>> for u32[src]

impl<T: ?Sized> From<IntPtr32<T>> for IntPtr64<T>[src]

impl<T: ?Sized> From<u32> for IntPtr32<T>[src]

impl<T: ?Sized> Hash for IntPtr32<T>[src]

impl<T: ?Sized> LowerHex for IntPtr32<T>[src]

impl<T: ?Sized> Ord for IntPtr32<T>[src]

impl<T: ?Sized> PartialEq<IntPtr32<T>> for IntPtr32<T>[src]

impl<T: ?Sized> PartialOrd<IntPtr32<T>> for IntPtr32<T>[src]

impl<T> Sub<usize> for IntPtr32<T>[src]

type Output = IntPtr32<T>

The resulting type after applying the - operator.

impl<T: ?Sized> UpperHex for IntPtr32<T>[src]

Auto Trait Implementations

impl<T: ?Sized> Send for IntPtr32<T>

impl<T: ?Sized> Sync for IntPtr32<T>

impl<T: ?Sized> Unpin for IntPtr32<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.