Enum miri::stacked_borrows::RefKind
source · [−]Expand description
Indicates which kind of reference is being created.
Used by high-level reborrow
to compute which permissions to grant to the
new pointer.
Variants
Unique
Fields
two_phase: bool
&mut
and Box
.
Shared
&
with or without interior mutability.
Raw
Fields
mutable: bool
*mut
/*const
(raw pointers).
Trait Implementations
impl Copy for RefKind
impl Eq for RefKind
impl StructuralEq for RefKind
impl StructuralPartialEq for RefKind
Auto Trait Implementations
impl RefUnwindSafe for RefKind
impl Send for RefKind
impl Sync for RefKind
impl Unpin for RefKind
impl UnwindSafe for RefKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
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:
Unique
: 1 byteShared
: 0 bytesRaw
: 1 byte