pub trait StackIdxExt {
// Required methods
fn saturating_sub(self, n: impl Into<StackIdxConv>) -> u32;
fn wrapping_sub(self, n: impl Into<StackIdxConv>) -> u32;
fn raw(self) -> u32;
}Expand description
StackIdx checked-arithmetic helpers. Returns the raw u32 because Phase A
callers use the result in arithmetic comparisons against other u32
quantities (stack-distance offsets).
Required Methods§
fn saturating_sub(self, n: impl Into<StackIdxConv>) -> u32
fn wrapping_sub(self, n: impl Into<StackIdxConv>) -> u32
fn raw(self) -> u32
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".