pub struct Lean4Inductive {
pub name: String,
pub type_params: Vec<(String, Lean4Type)>,
pub indices: Vec<Lean4Type>,
pub constructors: Vec<Lean4Constructor>,
pub derives: Vec<String>,
pub doc_comment: Option<String>,
}Expand description
A Lean 4 inductive type declaration.
Fields§
§name: StringType name
type_params: Vec<(String, Lean4Type)>Type parameters: (α : Type u)
indices: Vec<Lean4Type>Index types (GADTs)
constructors: Vec<Lean4Constructor>Constructors
derives: Vec<String>Derives (e.g., Repr, DecidableEq, BEq)
doc_comment: Option<String>Optional doc comment
Implementations§
Trait Implementations§
Source§impl Clone for Lean4Inductive
impl Clone for Lean4Inductive
Source§fn clone(&self) -> Lean4Inductive
fn clone(&self) -> Lean4Inductive
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 Lean4Inductive
impl RefUnwindSafe for Lean4Inductive
impl Send for Lean4Inductive
impl Sync for Lean4Inductive
impl Unpin for Lean4Inductive
impl UnsafeUnpin for Lean4Inductive
impl UnwindSafe for Lean4Inductive
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