pub struct FnDef {
pub params: Vec<Arc<str>>,
pub body: Node,
pub span: Span,
}Expand description
A module-level def, callable from a macro body.
The body is the one the parser produced, before expansion: a compile-time call runs the
definition as written. A def whose body calls a macro is therefore not callable at compile
time, which is honest — the alternative is expansion order that depends on who calls what.
Fields§
§params: Vec<Arc<str>>§body: Node§span: SpanTrait Implementations§
Auto Trait Implementations§
impl Freeze for FnDef
impl RefUnwindSafe for FnDef
impl Send for FnDef
impl Sync for FnDef
impl Unpin for FnDef
impl UnwindSafe for FnDef
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