std::ptr::addr_eq
pub fn addr_eq<T, U>(p: *const T, q: *const U) -> bool where T: ?Sized, U: ?Sized
- Kind
- function
- Module
std::ptr- Since
- 1.76.0
Source: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
The entries of std::ptr in the Rust reference. This page has 102 cards.
pub fn addr_eq<T, U>(p: *const T, q: *const U) -> bool where T: ?Sized, U: ?Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub macro addr_of($place:expr) { ... }
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub macro addr_of_mut($place:expr) { ... }
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub type Alignment = Alignment;
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn copy<T>(src: *const T, dst: *mut T, count: usize)
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn copy_nonoverlapping<T>( src: *const T, dst: *mut T, count: usize, )
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn dangling<T>() -> *const T
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn dangling_mut<T>() -> *mut T
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn drop_in_place<T>(to_drop: *mut T) where T: ?Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct DynMetadata<Dyn>
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn align_of(self) -> usize
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn layout(self) -> Layout
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn size_of(self) -> usize
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn eq<T>(a: *const T, b: *const T) -> bool where T: ?Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn fn_addr_eq<T, U>(f: T, g: U) -> bool where T: FnPtr, U: FnPtr
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_mut<T>(r: &mut T) -> *mut T where T: ?Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_raw_parts<T>( data_pointer: *const impl Thin, metadata: <T as Pointee>::Metadata, ) -> *const T where T: ?Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_raw_parts_mut<T>( data_pointer: *mut impl Thin, metadata: <T as Pointee>::Metadata, ) -> *mut T where T: ?Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_ref<T>(r: &T) -> *const T where T: ?Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn hash<T, S>(hashee: *const T, into: &mut S) where S: Hasher, T: ?Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn metadata<T>(ptr: *const T) -> <T as Pointee>::Metadata where T: ?Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct NonNull<T>
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn add(self, count: usize) -> NonNull<T> where T: Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn addr(self) -> NonZero<usize>
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn align_offset(self, align: usize) -> usize where T: Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn as_mut<'a>(&mut self) -> &'a mut T
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_mut_ptr(self) -> *mut T
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_non_null_ptr(self) -> NonNull<T>
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_ptr(self) -> *mut T
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn as_ref<'a>(&self) -> &'a T
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn as_uninit_mut<'a>(self) -> &'a mut MaybeUninit<T>
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn as_uninit_ref<'a>(self) -> &'a MaybeUninit<T>
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn as_uninit_slice<'a>(self) -> &'a [MaybeUninit<T>]
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn as_uninit_slice_mut<'a>(self) -> &'a mut [MaybeUninit<T>]
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn byte_add(self, count: usize) -> NonNull<T>
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn byte_offset(self, count: isize) -> NonNull<T>
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn byte_offset_from<U>(self, origin: NonNull<U>) -> isize where U: ?Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn byte_offset_from_unsigned<U>( self, origin: NonNull<U>, ) -> usize where U: ?Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn byte_sub(self, count: usize) -> NonNull<T>
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn cast<U>(self) -> NonNull<U>
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn cast_array<const N: usize>(self) -> NonNull<[T; N]>
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn cast_init(self) -> NonNull<T>
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn cast_slice(self, len: usize) -> NonNull<[T]>
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn cast_uninit(self) -> NonNull<MaybeUninit<T>>
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn copy_from(self, src: NonNull<T>, count: usize) where T: Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn copy_from_nonoverlapping( self, src: NonNull<T>, count: usize, ) where T: Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn copy_to(self, dest: NonNull<T>, count: usize) where T: Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn copy_to_nonoverlapping(self, dest: NonNull<T>, count: usize) where T: Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn dangling() -> NonNull<T>
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn drop_in_place(self)
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn expose_provenance(self) -> NonZero<usize>
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_mut(r: &mut T) -> NonNull<T>
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_raw_parts( data_pointer: NonNull<impl Thin>, metadata: <T as Pointee>::Metadata, ) -> NonNull<T>
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn from_ref(r: &T) -> NonNull<T>
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn get_unchecked_mut<I>( self, index: I, ) -> NonNull<<I as SliceIndex<[T]>>::Output> where I: SliceIndex<[T]>
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn is_aligned(self) -> bool where T: Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn is_aligned_to(self, align: usize) -> bool
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn is_empty(self) -> bool
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn len(self) -> usize
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn map_addr( self, f: impl FnOnce(NonZero<usize>) -> NonZero<usize>, ) -> NonNull<T>
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn new(ptr: *mut T) -> Option<NonNull<T>>
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn new_unchecked(ptr: *mut T) -> NonNull<T>
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn offset(self, count: isize) -> NonNull<T> where T: Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn offset_from(self, origin: NonNull<T>) -> isize where T: Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn offset_from_unsigned(self, subtracted: NonNull<T>) -> usize where T: Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn read(self) -> T where T: Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn read_unaligned(self) -> T where T: Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn read_volatile(self) -> T where T: Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn replace(self, src: T) -> T where T: Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn slice_from_raw_parts(data: NonNull<T>, len: usize) -> NonNull<[T]>
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn sub(self, count: usize) -> NonNull<T> where T: Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn swap(self, with: NonNull<T>) where T: Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn to_raw_parts(self) -> (NonNull<()>, <T as Pointee>::Metadata)
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn try_cast_aligned<U>(self) -> Option<NonNull<U>>
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn with_addr(self, addr: NonZero<usize>) -> NonNull<T>
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn with_exposed_provenance(addr: NonZero<usize>) -> NonNull<T>
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn without_provenance(addr: NonZero<usize>) -> NonNull<T>
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn write(self, val: T) where T: Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn write_bytes(self, val: u8, count: usize) where T: Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn write_unaligned(self, val: T) where T: Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn write_volatile(self, val: T) where T: Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn null<T>() -> *const T where T: Thin + ?Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn null_mut<T>() -> *mut T where T: Thin + ?Sized
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub trait Pointee
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
type Metadata: Debug + Copy + Send + Sync + Ord + Hash + Unpin + Freeze
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn read<T>(src: *const T) -> T
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn read_unaligned<T>(src: *const T) -> T
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn read_volatile<T>(src: *const T) -> T
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn replace<T>(dst: *mut T, src: T) -> T
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn slice_from_raw_parts<T>(data: *const T, len: usize) -> *const [T]
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn slice_from_raw_parts_mut<T>(data: *mut T, len: usize) -> *mut [T]
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn swap<T>(x: *mut T, y: *mut T)
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn swap_nonoverlapping<T>(x: *mut T, y: *mut T, count: usize)
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
trait Thin = Pointee<Metadata = ()>;
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn with_exposed_provenance<T>(addr: usize) -> *const T
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn with_exposed_provenance_mut<T>(addr: usize) -> *mut T
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn without_provenance<T>(addr: usize) -> *const T
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn without_provenance_mut<T>(addr: usize) -> *mut T
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn write<T>(dst: *mut T, src: T)
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn write_bytes<T>(dst: *mut T, val: u8, count: usize)
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn write_unaligned<T>(dst: *mut T, src: T)
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn write_volatile<T>(dst: *mut T, src: T)
std::ptrSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.