pub enum MacroExpansion {
Expanded(SpannedExpr),
Error(String),
}Expand description
Result of macro expansion.
Variants§
Expanded(SpannedExpr)
Macro was successfully expanded to this expression.
Error(String)
Macro signature matched but expansion failed (e.g., invalid arguments). The string contains an error message.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MacroExpansion
impl RefUnwindSafe for MacroExpansion
impl Send for MacroExpansion
impl Sync for MacroExpansion
impl Unpin for MacroExpansion
impl UnwindSafe for MacroExpansion
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