pub struct ForwardTokensArgs {
pub source: Path,
pub target: Path,
pub mm_path: Option<Path>,
pub extra: Option<ForwardTokensExtraArg>,
/* private fields */
}Expand description
Used to parse args that were passed to forward_tokens_internal.
You shouldn’t need to use this directly.
Fields§
§source: PathThe path of the item whose tokens are being forwarded
target: PathThe path of the macro that will receive the forwarded tokens
mm_path: Option<Path>Contains the override path that will be used instead of ::macro_magic, if specified.
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 ForwardTokensArgs
impl Parse for ForwardTokensArgs
fn parse(__parse_input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl Freeze for ForwardTokensArgs
impl RefUnwindSafe for ForwardTokensArgs
impl !Send for ForwardTokensArgs
impl !Sync for ForwardTokensArgs
impl Unpin for ForwardTokensArgs
impl UnwindSafe for ForwardTokensArgs
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