pub enum PreservationProof {
IntCountdownLiteralZero,
}Expand description
Marker that the lowerer constructed a proof of preservation (recursive args stay in the precondition’s domain). The variants describe HOW the proof was constructed so future maintainers can trace why a given shape was accepted as native.
Variants§
IntCountdownLiteralZero
match p { 0 -> base; _ -> rec(p-1, ...) } under p ≥ 0
precondition. Wildcard arm gives p ≠ 0, combined with
p ≥ 0 yields p ≥ 1, so p - 1 ≥ 0.
Trait Implementations§
Source§impl Clone for PreservationProof
impl Clone for PreservationProof
Source§fn clone(&self) -> PreservationProof
fn clone(&self) -> PreservationProof
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 moreAuto Trait Implementations§
impl Freeze for PreservationProof
impl RefUnwindSafe for PreservationProof
impl Send for PreservationProof
impl Sync for PreservationProof
impl Unpin for PreservationProof
impl UnsafeUnpin for PreservationProof
impl UnwindSafe for PreservationProof
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