pub struct ConstructorDecl {
pub name: String,
pub params: Vec<(String, Node)>,
pub typ: Node,
}Expand description
One constructor of an inductive datatype.
Fields§
§name: StringConstructor name (e.g. zero, succ).
params: Vec<(String, Node)>Ordered binder list of the constructor’s Pi-type, each (name, type).
A constant constructor ((constructor zero)) has an empty list.
typ: NodeThe constructor’s recorded type — either a bare leaf naming the
inductive type (constant constructor) or the original (Pi …) chain.
Trait Implementations§
Source§impl Clone for ConstructorDecl
impl Clone for ConstructorDecl
Source§fn clone(&self) -> ConstructorDecl
fn clone(&self) -> ConstructorDecl
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 ConstructorDecl
impl RefUnwindSafe for ConstructorDecl
impl Send for ConstructorDecl
impl Sync for ConstructorDecl
impl Unpin for ConstructorDecl
impl UnsafeUnpin for ConstructorDecl
impl UnwindSafe for ConstructorDecl
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