pub struct Lean4Instance {
pub name: Option<String>,
pub ty: Lean4Type,
pub args: Vec<(String, Lean4Type)>,
pub body: Lean4Expr,
}Expand description
A Lean 4 instance declaration.
Fields§
§name: Option<String>Optional instance name
ty: Lean4TypeType class application (the type being instantiated)
args: Vec<(String, Lean4Type)>Arguments (implicit, typeclass)
body: Lean4ExprThe instance body (a where block or a term)
Implementations§
Trait Implementations§
Source§impl Clone for Lean4Instance
impl Clone for Lean4Instance
Source§fn clone(&self) -> Lean4Instance
fn clone(&self) -> Lean4Instance
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 Lean4Instance
impl RefUnwindSafe for Lean4Instance
impl Send for Lean4Instance
impl Sync for Lean4Instance
impl Unpin for Lean4Instance
impl UnsafeUnpin for Lean4Instance
impl UnwindSafe for Lean4Instance
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