Struct macro_magic_core::ForwardedTokens
source · pub struct ForwardedTokens {
pub target_path: Path,
pub item: Item,
pub extra: Option<ForwardTokensExtraArg>,
/* private fields */
}
Expand description
Used to parse args that were passed to forward_tokens_inner_internal
.
You shouldn’t need to use this directly.
Fields§
§target_path: Path
The path of the macro that will receive the forwarded tokens
item: Item
The item whose tokens are being forwarded
extra: Option<ForwardTokensExtraArg>
Optional extra data. This is how import_tokens_attr_internal
passes the item the
attribute macro is attached to, but this can be repurposed for other things potentially as
it wraps a token stream.
Trait Implementations§
source§impl Parse for ForwardedTokens
impl Parse for ForwardedTokens
fn parse(__parse_input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl Freeze for ForwardedTokens
impl RefUnwindSafe for ForwardedTokens
impl !Send for ForwardedTokens
impl !Sync for ForwardedTokens
impl Unpin for ForwardedTokens
impl UnwindSafe for ForwardedTokens
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