pub struct InductiveDecl {
pub name: SymbolId,
pub level_params: Vec<u32>,
pub ty: TermId,
pub num_params: u32,
pub num_indices: u32,
pub constructors: Vec<ConstructorDecl>,
pub recursor: Option<SymbolId>,
}Expand description
Inductive type declaration
Fields§
§name: SymbolIdName of the inductive type
level_params: Vec<u32>Universe parameters
ty: TermIdType of the inductive
num_params: u32Number of parameters (before the colon)
num_indices: u32Number of indices (after the colon)
constructors: Vec<ConstructorDecl>Constructors
recursor: Option<SymbolId>Recursor declaration
Trait Implementations§
Source§impl Clone for InductiveDecl
impl Clone for InductiveDecl
Source§fn clone(&self) -> InductiveDecl
fn clone(&self) -> InductiveDecl
Returns a duplicate of the value. Read more
1.0.0 · 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 InductiveDecl
impl RefUnwindSafe for InductiveDecl
impl Send for InductiveDecl
impl Sync for InductiveDecl
impl Unpin for InductiveDecl
impl UnwindSafe for InductiveDecl
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