Struct macro_magic_core::ImportTokensArgs
source · pub struct ImportTokensArgs {
pub tokens_var_ident: Ident,
pub source_path: Path,
/* private fields */
}
Expand description
Used to parse the args for the import_tokens_internal
function.
You shouldn’t need to use this directly.
Fields§
§tokens_var_ident: Ident
The Ident
for the tokens
variable. Usually called tokens
but could be
something different, hence this variable.
source_path: Path
The Path
where the item we are importing can be found.
Trait Implementations§
source§impl Parse for ImportTokensArgs
impl Parse for ImportTokensArgs
fn parse(__parse_input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl Freeze for ImportTokensArgs
impl RefUnwindSafe for ImportTokensArgs
impl !Send for ImportTokensArgs
impl !Sync for ImportTokensArgs
impl Unpin for ImportTokensArgs
impl UnwindSafe for ImportTokensArgs
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