pub struct SlotCount(/* private fields */);Expand description
A frame width the shadow stack can actually hold: a u32 proven <=
MAX_SHADOW_SLOTS at construction.
An over-wide frame is unconstructible rather than rejected at run time:
SlotCount::new is the only way to make one, the backend turns the None
into a compile diagnostic naming the function, and every consumer of a
SlotCount may assume the bound without re-checking it. That assumption is
load-bearing — it is one of the two premises of SHADOW_STACK_SLOTS.
Implementations§
Trait Implementations§
impl Copy for SlotCount
impl Eq for SlotCount
impl StructuralPartialEq for SlotCount
Auto Trait Implementations§
impl Freeze for SlotCount
impl RefUnwindSafe for SlotCount
impl Send for SlotCount
impl Sync for SlotCount
impl Unpin for SlotCount
impl UnsafeUnpin for SlotCount
impl UnwindSafe for SlotCount
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