#[non_exhaustive]pub struct MacroCall {
pub attributes: Vec<Attribute>,
pub path: Path,
pub bang: Bang,
pub open: Token,
pub input: TokenStream,
pub close: Token,
/* private fields */
}Expand description
A macro call.
<expr>!(<args>).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.attributes: Vec<Attribute>Attributes associated with macro call.
path: PathThe expression being called over.
bang: BangBang operator !.
open: TokenOpening token.
input: TokenStreamThe tokens provided to the macro.
close: TokenClosing token.
Trait Implementations§
impl Eq for MacroCall
Source§impl OptionSpanned for MacroCall
impl OptionSpanned for MacroCall
Source§fn option_span(&self) -> Option<Span>
fn option_span(&self) -> Option<Span>
Get the optional span of the type.
impl StructuralPartialEq for MacroCall
Auto Trait Implementations§
impl Forget for MacroCall
impl Freeze for MacroCallwhere
NonZero<u32>: Freeze,
*const Attribute is !null: Freeze,
PhantomData<Attribute>: Freeze,
*const (PathSegmentExpr, Option<Comma>) is !null: Freeze,
PhantomData<(PathSegmentExpr, Option<Comma>)>: Freeze,
*const (ColonColon, PathSegment) is !null: Freeze,
PhantomData<(ColonColon, PathSegment)>: Freeze,
*const Token is !null: Freeze,
PhantomData<Token>: Freeze,
impl Move for MacroCall
impl RefUnwindSafe for MacroCall
impl Send for MacroCallwhere
NonZero<u32>: Send,
Unique<Attribute>: Send,
Unique<(PathSegmentExpr, Option<Comma>)>: Send,
Unique<(ColonColon, PathSegment)>: Send,
Unique<Token>: Send,
impl Sync for MacroCallwhere
NonZero<u32>: Sync,
Unique<Attribute>: Sync,
Unique<(PathSegmentExpr, Option<Comma>)>: Sync,
Unique<(ColonColon, PathSegment)>: Sync,
Unique<Token>: Sync,
impl Unpin for MacroCallwhere
NonZero<u32>: Unpin,
*const Attribute is !null: Unpin,
*const (PathSegmentExpr, Option<Comma>) is !null: Unpin,
Box<Expr>: Unpin,
Box<Condition>: Unpin,
Box<Block>: Unpin,
*const (Pat, Option<Comma>) is !null: Unpin,
Box<Pat>: Unpin,
*const ExprElseIf is !null: Unpin,
*const (ExprMatchBranch, Option<Comma>) is !null: Unpin,
*const (Expr, Option<Comma>) is !null: Unpin,
*const Stmt is !null: Unpin,
Box<Local>: Unpin,
*const (ItemUsePath, Option<Comma>) is !null: Unpin,
*const (ColonColon, ItemUseSegment) is !null: Unpin,
*const (FnArg, Option<Comma>) is !null: Unpin,
*const (Box<Type>, Option<Comma>) is !null: Unpin,
Box<Type>: Unpin,
*const (ItemVariant, Option<Comma>) is !null: Unpin,
*const (Field, Option<Comma>) is !null: Unpin,
*const (ImplItem, Option<SemiColon>) is !null: Unpin,
Box<File>: Unpin,
*const (ExprSelectBranch, Option<Comma>) is !null: Unpin,
*const (FieldAssign, Option<Comma>) is !null: Unpin,
*const (ColonColon, PathSegment) is !null: Unpin,
*const Token is !null: Unpin,
impl UnsafeUnpin for MacroCallwhere
NonZeroU32Inner: UnsafeUnpin,
*const Attribute is !null: UnsafeUnpin,
PhantomData<Attribute>: UnsafeUnpin,
*const (PathSegmentExpr, Option<Comma>) is !null: UnsafeUnpin,
PhantomData<(PathSegmentExpr, Option<Comma>)>: UnsafeUnpin,
*const (ColonColon, PathSegment) is !null: UnsafeUnpin,
PhantomData<(ColonColon, PathSegment)>: UnsafeUnpin,
*const Token is !null: UnsafeUnpin,
PhantomData<Token>: UnsafeUnpin,
impl UnwindSafe for MacroCallwhere
NonZero<u32>: UnwindSafe,
NonNull<Attribute>: UnwindSafe,
NonNull<(PathSegmentExpr, Option<Comma>)>: UnwindSafe,
NonNull<Expr>: UnwindSafe,
NonNull<Condition>: UnwindSafe,
NonNull<(Pat, Option<Comma>)>: UnwindSafe,
NonNull<Pat>: UnwindSafe,
NonNull<Block>: UnwindSafe,
NonNull<Stmt>: UnwindSafe,
NonNull<Local>: UnwindSafe,
NonNull<(ItemUsePath, Option<Comma>)>: UnwindSafe,
NonNull<(ColonColon, ItemUseSegment)>: UnwindSafe,
NonNull<(FnArg, Option<Comma>)>: UnwindSafe,
NonNull<(Box<Type>, Option<Comma>)>: UnwindSafe,
NonNull<Type>: UnwindSafe,
NonNull<(ItemVariant, Option<Comma>)>: UnwindSafe,
NonNull<(Field, Option<Comma>)>: UnwindSafe,
NonNull<(ImplItem, Option<SemiColon>)>: UnwindSafe,
NonNull<File>: UnwindSafe,
NonNull<(Item, Option<SemiColon>)>: UnwindSafe,
NonNull<ExprElseIf>: UnwindSafe,
NonNull<(ExprMatchBranch, Option<Comma>)>: UnwindSafe,
NonNull<(Expr, Option<Comma>)>: UnwindSafe,
NonNull<(ExprSelectBranch, Option<Comma>)>: UnwindSafe,
NonNull<(FieldAssign, Option<Comma>)>: UnwindSafe,
NonNull<(ColonColon, PathSegment)>: UnwindSafe,
NonNull<Token>: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.