pub struct Expander {
pub budget_on: bool,
pub expand_budget: u64,
pub expand_fired: u64,
/* private fields */
}Expand description
The macro table and the application counters: mMacros, mBudgetOn,
mExpandBudget and mExpandFired.
Fields§
§budget_on: boolL15: when on, applications beyond the budget do not fire.
expand_budget: u64§expand_fired: u64L1: macro applications since the last reset.
Implementations§
Source§impl Expander
impl Expander
pub fn new() -> Expander
Sourcepub fn define_macro(&mut self, f: &List) -> Result<(), Refusal>
pub fn define_macro(&mut self, f: &List) -> Result<(), Refusal>
VBA DefineMacro: (defmacro (name params... [& rest]) ["doc"] template...).
Sourcepub fn expand(&mut self, d: &Form, depth: u32) -> Result<Form, Refusal>
pub fn expand(&mut self, d: &Form, depth: u32) -> Result<Form, Refusal>
VBA ExpandMacros: a form to its fixpoint.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Expander
impl RefUnwindSafe for Expander
impl Send for Expander
impl Sync for Expander
impl Unpin for Expander
impl UnsafeUnpin for Expander
impl UnwindSafe for Expander
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