pub enum PointerKind {
SharedRef {
frozen: bool,
},
MutableRef {
unpin: bool,
},
Box {
unpin: bool,
global: 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. global
indicates whether this box
uses the global allocator or a custom one.
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 for PointerKind
impl PartialEq for PointerKind
impl Copy for PointerKind
impl Eq for PointerKind
impl StructuralPartialEq for PointerKind
Auto Trait Implementations§
impl Freeze for PointerKind
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