pub struct PeanoCtx {
pub type_name: String,
pub zero_ctor: String,
pub succ_ctor: String,
}Expand description
The canonical-Peano ADT (surface type + constructor names) whose Lean-Nat
lift the un-translator inverts. Constructor names are DATA carried from the
law’s declaration; the machinery keys on the Peano SHAPE, never on the names.
Fields§
§type_name: String§zero_ctor: String§succ_ctor: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for PeanoCtx
impl RefUnwindSafe for PeanoCtx
impl Send for PeanoCtx
impl Sync for PeanoCtx
impl Unpin for PeanoCtx
impl UnsafeUnpin for PeanoCtx
impl UnwindSafe for PeanoCtx
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