[][src]Struct intptr::IntPtr64

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

Unmanaged 64-bit typed pointer.

Implementations

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

pub const NULL: IntPtr64<T>[src]

Null pointer constant.

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

Creates a null pointer.

pub const fn from_raw(address: u64) -> IntPtr64<T>[src]

Creates a pointer from its address.

pub const fn member(address: u64, offset: u32) -> IntPtr64<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) -> IntPtr64<U>[src]

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

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

Offsets the pointer to a field.

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

Offsets the pointer and cast.

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

Returns the raw integer, type ascription helper.

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

Formats the pointer.

impl<T> IntPtr64<[T]>[src]

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

Decays the pointee from [T] to T.

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

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

Trait Implementations

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

type Output = IntPtr64<T>

The resulting type after applying the + operator.

impl<T: ?Sized> AsMut<u64> for IntPtr64<T>[src]

impl<T: ?Sized> AsRef<u64> for IntPtr64<T>[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

type Output = IntPtr64<T>

The resulting type after applying the - operator.

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

Auto Trait Implementations

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

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

impl<T: ?Sized> Unpin for IntPtr64<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.