pub enum AttributeArg {
Path {
segments: NonEmpty<Ident>,
span: Span,
},
RangeStep {
step: u64,
span: Span,
},
Group {
elements: Vec<Self>,
span: Span,
},
}Expand description
An argument inside an attribute’s parenthesized list.
Supports plain identifiers (pressure_safe), qualified paths
(Index.Variant), Nat range steps (#2), and parenthesized groups
((Mode.Boost, Phase.Launch), (Mode.Boost, #2)).
Variants§
Path
A path of one or more .-separated segments: foo, Index.Variant.
RangeStep
A Nat range step key: #N — matches the #N slice-label syntax of
table expressions for range(N) axes.
Group
A parenthesized group of args: (Index.A, Index.B).
Implementations§
Trait Implementations§
Source§impl Clone for AttributeArg
impl Clone for AttributeArg
Source§fn clone(&self) -> AttributeArg
fn clone(&self) -> AttributeArg
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 AttributeArg
impl Debug for AttributeArg
Source§impl FormatEquivalent for AttributeArg
impl FormatEquivalent for AttributeArg
Source§fn format_equivalent(&self, other: &Self) -> bool
fn format_equivalent(&self, other: &Self) -> bool
Returns
true if self and other are equivalent up to formatting.Auto Trait Implementations§
impl Freeze for AttributeArg
impl RefUnwindSafe for AttributeArg
impl Send for AttributeArg
impl Sync for AttributeArg
impl Unpin for AttributeArg
impl UnsafeUnpin for AttributeArg
impl UnwindSafe for AttributeArg
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