pub struct InductiveSpec {
pub name: Name,
pub ty: Expr,
pub ctors: Vec<(Name, Expr)>,
pub rec_name: Option<Name>,
}Expand description
A single inductive type inside a (possibly mutual) family declaration.
Fields§
§name: NameName of the inductive type.
ty: ExprFull type: Π params.. indices.., Sort l.
ctors: Vec<(Name, Expr)>Constructors as (name, full type) pairs. The constructor type must
re-bind the family parameters first.
rec_name: Option<Name>Optional explicit recursor name (defaults to <name>.rec).
Implementations§
Trait Implementations§
Source§impl Clone for InductiveSpec
impl Clone for InductiveSpec
Auto Trait Implementations§
impl !Send for InductiveSpec
impl !Sync for InductiveSpec
impl Forget for InductiveSpec
impl Freeze for InductiveSpec
impl Move for InductiveSpec
impl RefUnwindSafe for InductiveSpec
impl Unpin for InductiveSpec
impl UnsafeUnpin for InductiveSpec
impl UnwindSafe for InductiveSpec
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