pub enum MacroExpansionResultExt2 {
Success(String),
Error(MacroExpansionErrorExt2),
NoMatch,
}Expand description
The result of a macro expansion attempt.
Variants§
Success(String)
Expansion succeeded, result is the expanded string
Error(MacroExpansionErrorExt2)
Expansion failed with an error
NoMatch
No rule matched
Implementations§
Trait Implementations§
Source§impl Clone for MacroExpansionResultExt2
impl Clone for MacroExpansionResultExt2
Source§fn clone(&self) -> MacroExpansionResultExt2
fn clone(&self) -> MacroExpansionResultExt2
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MacroExpansionResultExt2
impl RefUnwindSafe for MacroExpansionResultExt2
impl Send for MacroExpansionResultExt2
impl Sync for MacroExpansionResultExt2
impl Unpin for MacroExpansionResultExt2
impl UnsafeUnpin for MacroExpansionResultExt2
impl UnwindSafe for MacroExpansionResultExt2
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