[−][src]Struct intptr::IntPtr
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.
fn add(self, other: usize) -> IntPtr64<T>
[src]
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]
fn clone(&self) -> IntPtr64<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T: ?Sized> LowerHex for IntPtr64<T>
[src]
impl<T: ?Sized> Ord for IntPtr64<T>
[src]
fn cmp(&self, rhs: &IntPtr64<T>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<T: ?Sized> PartialEq<IntPtr64<T>> for IntPtr64<T>
[src]
impl<T: ?Sized> PartialOrd<IntPtr64<T>> for IntPtr64<T>
[src]
fn partial_cmp(&self, rhs: &IntPtr64<T>) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<T> Sub<usize> for IntPtr64<T>
[src]
type Output = IntPtr64<T>
The resulting type after applying the -
operator.
fn sub(self, other: usize) -> IntPtr64<T>
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,