Enum rustc_abi::PointerKind
source · pub enum PointerKind {
SharedRef {
frozen: bool,
},
MutableRef {
unpin: bool,
},
Box {
unpin: bool,
},
}
Variants§
Shared reference. frozen
indicates the absence of any UnsafeCell
.
MutableRef
Mutable reference. unpin
indicates the absence of any pinned data.
Box
Box. unpin
indicates the absence of any pinned data.
Trait Implementations§
source§impl Clone for PointerKind
impl Clone for PointerKind
source§fn clone(&self) -> PointerKind
fn clone(&self) -> PointerKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PointerKind
impl Debug for PointerKind
source§impl PartialEq<PointerKind> for PointerKind
impl PartialEq<PointerKind> for PointerKind
source§fn eq(&self, other: &PointerKind) -> bool
fn eq(&self, other: &PointerKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PointerKind
impl Eq for PointerKind
impl StructuralEq for PointerKind
impl StructuralPartialEq for PointerKind
Auto Trait Implementations§
impl RefUnwindSafe for PointerKind
impl Send for PointerKind
impl Sync for PointerKind
impl Unpin for PointerKind
impl UnwindSafe for PointerKind
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 2 bytes
Size for each variant:
SharedRef
: 1 byteMutableRef
: 1 byteBox
: 1 byte