pub struct DebugSlotCount(/* private fields */);Expand description
A count of debug value slots the debug value stack can actually hold: a u32
proven <= MAX_DEBUG_VALUE_SLOTS at construction (ADR-128 decision 3).
A distinct type from SlotCount, and that is the point. The claim on
the shadow stack and the claim on the debug value stack are different
numbers with different bounds over different index spaces, and the failure
mode of confusing them is silent: claiming the colored width on the debug
stack would give the debugger a frame too short for its own metadata to
index, and every local past the end would render another frame’s value.
Making them two types means that mix-up does not compile.
Implementations§
Trait Implementations§
Source§impl Clone for DebugSlotCount
impl Clone for DebugSlotCount
Source§fn clone(&self) -> DebugSlotCount
fn clone(&self) -> DebugSlotCount
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DebugSlotCount
Source§impl Debug for DebugSlotCount
impl Debug for DebugSlotCount
impl Eq for DebugSlotCount
Source§impl PartialEq for DebugSlotCount
impl PartialEq for DebugSlotCount
impl StructuralPartialEq for DebugSlotCount
Auto Trait Implementations§
impl Freeze for DebugSlotCount
impl RefUnwindSafe for DebugSlotCount
impl Send for DebugSlotCount
impl Sync for DebugSlotCount
impl Unpin for DebugSlotCount
impl UnsafeUnpin for DebugSlotCount
impl UnwindSafe for DebugSlotCount
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