pub struct InductiveDecl {
pub name: String,
pub constructors: Vec<ConstructorDecl>,
pub elim_name: String,
pub elim_type: Node,
}Expand description
A parsed (inductive Name (constructor …) …) declaration.
Fields§
§name: StringInductive type name (must start with an uppercase letter).
constructors: Vec<ConstructorDecl>Ordered list of declared constructors.
elim_name: StringGenerated eliminator name (Name-rec).
elim_type: NodeGenerated eliminator’s dependent Pi-type.
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 UnsafeUnpin 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