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