pub struct Lean4Abbrev {
pub name: String,
pub args: Vec<(String, Lean4Type)>,
pub ty: Option<Lean4Type>,
pub body: Lean4Expr,
}Expand description
A Lean 4 abbrev declaration (transparent definition).
Fields§
§name: StringName
args: Vec<(String, Lean4Type)>Arguments
ty: Option<Lean4Type>Return type
body: Lean4ExprBody
Implementations§
Trait Implementations§
Source§impl Clone for Lean4Abbrev
impl Clone for Lean4Abbrev
Source§fn clone(&self) -> Lean4Abbrev
fn clone(&self) -> Lean4Abbrev
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 Lean4Abbrev
impl RefUnwindSafe for Lean4Abbrev
impl Send for Lean4Abbrev
impl Sync for Lean4Abbrev
impl Unpin for Lean4Abbrev
impl UnsafeUnpin for Lean4Abbrev
impl UnwindSafe for Lean4Abbrev
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