std::mem::align_of
pub const fn align_of<T>() -> usize
- Kind
- function
- Module
std::mem- Since
- 1.0.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::mem in the Rust reference. This page has 78 cards.
pub const fn align_of<T>() -> usize
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn align_of_val<T>(val: &T) -> usize where T: ?Sized
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn align_of_val_raw<T>(val: *const T) -> usize where T: ?Sized
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct Alignment
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_nonzero(self) -> NonZero<usize>
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_nonzero_usize(self) -> NonZero<usize>
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_usize(self) -> usize
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn log2(self) -> u32
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn mask(self) -> usize
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const MIN: Alignment
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn new(align: usize) -> Option<Alignment>
std::memSource: 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(align: usize) -> Alignment
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn of<T>() -> Alignment
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn of_val<T>(val: &T) -> Alignment where T: ?Sized
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn of_val_raw<T>(val: *const T) -> Alignment where T: ?Sized
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct Assume
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const ALIGNMENT: Assume
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn and(self, other_assumptions: Assume) -> Assume
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn but_not(self, other_assumptions: Assume) -> Assume
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const LIFETIMES: Assume
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const NOTHING: Assume
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const SAFETY: Assume
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const VALIDITY: Assume
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn conjure_zst<T>() -> T
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn copy<T>(x: &T) -> T where T: Copy
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct Discriminant<T>(/* private fields */)
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn discriminant<T>(v: &T) -> Discriminant<T>
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn drop<T>(_x: T)
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct DropGuard<T, F>
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn dismiss(guard: DropGuard<T, F>) -> T
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn new(inner: T, f: F) -> DropGuard<T, F>
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn forget<T>(t: T)
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn forget_unsized<T>(t: T) where T: ?Sized
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct ManuallyDrop<T>
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn drop(slot: &mut ManuallyDrop<T>)
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn into_inner(slot: ManuallyDrop<T>) -> T
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn new(value: T) -> ManuallyDrop<T>
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn take(slot: &mut ManuallyDrop<T>) -> T
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub struct MaybeDangling<P>(/* private fields */)
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_mut(&mut self) -> &mut P
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_ref(&self) -> &P
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn into_inner(self) -> P where P: Sized
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn new(x: P) -> MaybeDangling<P> where P: Sized
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub union MaybeUninit<T>
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn array_assume_init<const N: usize>( array: [MaybeUninit<T>; N], ) -> [T; N]
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_bytes(&self) -> &[MaybeUninit<u8>]
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn as_bytes_mut(&mut self) -> &mut [MaybeUninit<u8>]
std::memSource: 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(&mut self) -> *mut T
std::memSource: 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) -> *const T
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn assume_init(self) -> T
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn assume_init_drop(&mut self)
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn assume_init_mut(&mut self) -> &mut T
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn assume_init_read(&self) -> T
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn assume_init_ref(&self) -> &T
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn new(val: T) -> MaybeUninit<T>
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn transpose(self) -> [MaybeUninit<T>; N]
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn uninit() -> MaybeUninit<T>
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn write(&mut self, val: T) -> &mut T
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn zeroed() -> MaybeUninit<T>
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn min_align_of<T>() -> usize
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn min_align_of_val<T>(val: &T) -> usize where T: ?Sized
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn needs_drop<T>() -> bool where T: ?Sized
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub macro offset_of($Container:ty, $($fields:expr)+ $(,)?) { ... }
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn replace<T>(dest: &mut T, src: T) -> T
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn size_of<T>() -> usize
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn size_of_val<T>(val: &T) -> usize where T: ?Sized
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn size_of_val_raw<T>(val: *const T) -> usize where T: ?Sized
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn swap<T>(x: &mut T, y: &mut T)
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub fn take<T>(dest: &mut T) -> T where T: Default
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn transmute<Src, Dst>(src: Src) -> Dst
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn transmute_copy<Src, Dst>(src: &Src) -> Dst
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn transmute_neo<Src, Dst>(src: Src) -> Dst
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn transmute_prefix<Src, Dst>(src: Src) -> Dst
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe trait TransmuteFrom<Src, const ASSUME: Assume = core::::mem::transmutability::TransmuteFrom::
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
unsafe fn transmute(src: Src) -> Self where Src: Sized, Self: Sized
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub unsafe fn uninitialized<T>() -> T
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const fn variant_count<T>() -> usize
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.
pub const unsafe fn zeroed<T>() -> T
std::memSource: doc.rust-lang.org, doc.rust-lang.org. JSON record. This entry is a card. Help write this page.