pub struct MacroArg {
pub name: String,
pub value: String,
}Expand description
One macro argument: the declared parameter name and the raw call-site argument text.
The value is injected verbatim as var <name>=<value>; ahead of the script
source, exactly like the OverPy reference (resolveMacro in
src/compiler/tokenizer.ts). Argument-count validation against the macro
declaration belongs to the frontend, which knows the declared parameters.
Fields§
§name: StringParameter name as declared in the macro.
value: StringRaw textual argument from the call site.
Implementations§
Trait Implementations§
impl Eq for MacroArg
impl StructuralPartialEq for MacroArg
Auto Trait Implementations§
impl Freeze for MacroArg
impl RefUnwindSafe for MacroArg
impl Send for MacroArg
impl Sync for MacroArg
impl Unpin for MacroArg
impl UnsafeUnpin for MacroArg
impl UnwindSafe for MacroArg
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