pub struct Def {
pub name: String,
pub params: Vec<String>,
pub body: Expr,
pub span: Span,
}Expand description
A top-level definition: name(params) = body; (params may be empty).
Fields§
§name: StringDefinition name.
params: Vec<String>Formal parameter names (empty for a plain alias).
body: ExprRight-hand side.
span: SpanSpan of the whole definition.
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