Struct dgen::interpreter::ast::MacroDef
source · pub struct MacroDef {
pub doc_comments: String,
pub name: IString,
pub args: Vec<MacroArgument>,
pub body: Expr,
}
Fields
doc_comments: String
name: IString
args: Vec<MacroArgument>
body: Expr
Trait Implementations
sourceimpl From<MacroDef> for InterpretedFunctionPrototype
impl From<MacroDef> for InterpretedFunctionPrototype
sourcefn from(macro_def: MacroDef) -> InterpretedFunctionPrototype
fn from(macro_def: MacroDef) -> InterpretedFunctionPrototype
Converts to this type from the input type.
impl StructuralPartialEq for MacroDef
Auto Trait Implementations
impl RefUnwindSafe for MacroDef
impl Send for MacroDef
impl Sync for MacroDef
impl Unpin for MacroDef
impl UnwindSafe for MacroDef
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more