pub enum Def {
Anchor {
name: String,
params: Vec<Param>,
body: Expr,
where_defs: Vec<Def>,
span: Span,
},
Local {
name: String,
body: Expr,
where_defs: Vec<Def>,
span: Span,
},
}Expand description
A definition — top-level, where-block, or let-block.
Variants§
Anchor
name p1 p2 = body — an anchor with parameters.
Fields
Local
name = body — a local binding (no params).
Implementations§
Trait Implementations§
impl StructuralPartialEq for Def
Auto Trait Implementations§
impl Freeze for Def
impl RefUnwindSafe for Def
impl Send for Def
impl Sync for Def
impl Unpin for Def
impl UnsafeUnpin for Def
impl UnwindSafe for Def
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