pub enum Phase {
Read,
Expand,
Compile,
Eval,
}Expand description
A stage in the pipeline at which macro expansion may run.
Eval policies consult the phase via
EvalPolicy::allow_macro_expansion,
and expanders receive it in MacroExpander::expand_expr.
Variants§
Read
While reading source forms into expressions.
Expand
During the dedicated macro-expansion pass.
Compile
While compiling expanded expressions.
Eval
During evaluation itself.
Trait Implementations§
impl Copy for Phase
impl Eq for Phase
impl StructuralPartialEq for Phase
Auto Trait Implementations§
impl Freeze for Phase
impl RefUnwindSafe for Phase
impl Send for Phase
impl Sync for Phase
impl Unpin for Phase
impl UnsafeUnpin for Phase
impl UnwindSafe for Phase
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