pub struct NoProtection;Expand description
Zero-overhead default. sign returns 0; verify always succeeds. The
optimizer reliably folds calls through NoProtection into no-ops in
release builds.
Trait Implementations§
Source§impl Clone for NoProtection
impl Clone for NoProtection
Source§fn clone(&self) -> NoProtection
fn clone(&self) -> NoProtection
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 moreSource§impl Debug for NoProtection
impl Debug for NoProtection
Source§impl Default for NoProtection
impl Default for NoProtection
Source§fn default() -> NoProtection
fn default() -> NoProtection
Returns the “default value” for a type. Read more
Source§impl FreelistProtection for NoProtection
impl FreelistProtection for NoProtection
Source§fn sign(&self, _next_idx: u32, _slot_addr: usize) -> u32
fn sign(&self, _next_idx: u32, _slot_addr: usize) -> u32
Sign a freelist link.
next_idx is the 1-based slot index being
stored, or 0 for the end-of-list sentinel (so the input range
is 0..=u32::MAX). slot_addr is the virtual address of the slot
containing the link (used as a nonce so that a copy of a freelist
link to a different slot won’t verify).impl Copy for NoProtection
Auto Trait Implementations§
impl Freeze for NoProtection
impl RefUnwindSafe for NoProtection
impl Send for NoProtection
impl Sync for NoProtection
impl Unpin for NoProtection
impl UnsafeUnpin for NoProtection
impl UnwindSafe for NoProtection
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