pub enum MirHeapOwnership {
None,
Owned,
OwnedShallow,
BorrowedView,
}Expand description
Heap ownership policy carried by one MIR local.
Variants§
None
Local does not participate in runtime heap retain/release operations.
Owned
Local owns one runtime heap allocation that must be released.
OwnedShallow
Local owns one runtime container whose nested payload is borrowed/shared.
BorrowedView
Local denotes a borrowed slice view and must not run retain/release.
Implementations§
Source§impl MirHeapOwnership
impl MirHeapOwnership
Sourcepub fn uses_heap_ops(self) -> bool
pub fn uses_heap_ops(self) -> bool
Return whether this ownership class requires runtime retain/release operations.
Trait Implementations§
Source§impl Clone for MirHeapOwnership
impl Clone for MirHeapOwnership
Source§fn clone(&self) -> MirHeapOwnership
fn clone(&self) -> MirHeapOwnership
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 MirHeapOwnership
impl Debug for MirHeapOwnership
Source§impl PartialEq for MirHeapOwnership
impl PartialEq for MirHeapOwnership
impl Copy for MirHeapOwnership
impl Eq for MirHeapOwnership
impl StructuralPartialEq for MirHeapOwnership
Auto Trait Implementations§
impl Freeze for MirHeapOwnership
impl RefUnwindSafe for MirHeapOwnership
impl Send for MirHeapOwnership
impl Sync for MirHeapOwnership
impl Unpin for MirHeapOwnership
impl UnwindSafe for MirHeapOwnership
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more