pub struct CtfeProvenance(NonZero<u64>);
Expand description
The type of provenance in the compile-time interpreter. This is a packed representation of:
- an
AllocId
(non-zero) - an
immutable: bool
- a
shared_ref: bool
with the extra invariant that if immutable
is true
, then so
is shared_ref
.
Tuple Fields§
§0: NonZero<u64>
Auto Trait Implementations§
impl Freeze for CtfeProvenance
impl RefUnwindSafe for CtfeProvenance
impl Send for CtfeProvenance
impl Sync for CtfeProvenance
impl Unpin for CtfeProvenance
impl UnwindSafe for CtfeProvenance
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.