pub struct IntroRule {
pub name: Name,
pub ty: Expr,
}Expand description
An introduction rule (constructor) for an inductive type.
Fields§
§name: NameConstructor name
ty: ExprConstructor type (as a Pi-type)
Trait Implementations§
impl StructuralPartialEq for IntroRule
Auto Trait Implementations§
impl Freeze for IntroRule
impl RefUnwindSafe for IntroRule
impl Send for IntroRule
impl Sync for IntroRule
impl Unpin for IntroRule
impl UnsafeUnpin for IntroRule
impl UnwindSafe for IntroRule
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