pub struct MutualInductive {
pub name: String,
pub sort: Term,
pub num_params: usize,
pub constructors: Vec<(String, Term)>,
}Expand description
One member of a MUTUAL inductive block: its name, arity sort, uniform parameter count, and constructors (name + full type). Constructor types may reference ANY member of the block — that is the whole point of a mutual declaration.
Fields§
§name: StringThe inductive’s name (e.g. Even).
sort: TermIts arity sort (e.g. Nat → Prop).
num_params: usizeHow many leading arity arguments are uniform parameters (the rest are indices).
constructors: Vec<(String, Term)>Constructors: (name, full type), types possibly mentioning sibling members.
Trait Implementations§
Source§impl Clone for MutualInductive
impl Clone for MutualInductive
Source§fn clone(&self) -> MutualInductive
fn clone(&self) -> MutualInductive
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 MutualInductive
impl RefUnwindSafe for MutualInductive
impl Send for MutualInductive
impl Sync for MutualInductive
impl Unpin for MutualInductive
impl UnsafeUnpin for MutualInductive
impl UnwindSafe for MutualInductive
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