pub struct MacroExpansion {
pub expanding: String,
pub arguments: String,
pub to: String,
pub name: String,
pub kind: MacroExpansionKind,
pub input: String,
}Expand description
A single macro expansion pair: the “expanding” text and the “to” text.
Fields§
§expanding: String§arguments: String§to: String§name: StringMacro name (e.g. "println", "derive", "test").
kind: MacroExpansionKindKind of macro invocation.
input: StringRaw input token stream that the macro receives.
Trait Implementations§
Source§impl Clone for MacroExpansion
impl Clone for MacroExpansion
Source§fn clone(&self) -> MacroExpansion
fn clone(&self) -> MacroExpansion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MacroExpansion
impl Debug for MacroExpansion
Source§impl PartialEq for MacroExpansion
impl PartialEq for MacroExpansion
Source§fn eq(&self, other: &MacroExpansion) -> bool
fn eq(&self, other: &MacroExpansion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MacroExpansion
impl StructuralPartialEq for MacroExpansion
Auto Trait Implementations§
impl Freeze for MacroExpansion
impl RefUnwindSafe for MacroExpansion
impl Send for MacroExpansion
impl Sync for MacroExpansion
impl Unpin for MacroExpansion
impl UnsafeUnpin 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