pub enum MatchKind {
Attribute {
macro_id: Option<AttributeId>,
},
Macro {
parent_macro_id: Option<AttributeId>,
},
}
Expand description
The kind of attribute within the context of a match.
Variants§
Attribute
A attribute.
Fields
§
macro_id: Option<AttributeId>
The location of the macro which referred to it the list with all in-order attributes and macros, or None
if
this is attribute wasn’t resolved.
Use Outcome::match_by_id()
to retrieve the macro.
Macro
The attribute is a macro, which will resolve into one or more attributes or macros.
Fields
§
parent_macro_id: Option<AttributeId>
The location of the parent macro which referred to this one in the list with all in-order attributes and macros,
or None
if this is macro wasn’t resolved by another one.
Use Outcome::match_by_id()
to retrieve the parent.
Implementations§
Trait Implementations§
Source§impl Ord for MatchKind
impl Ord for MatchKind
Source§impl PartialOrd for MatchKind
impl PartialOrd for MatchKind
impl Copy for MatchKind
impl Eq for MatchKind
impl StructuralPartialEq for MatchKind
Auto Trait Implementations§
impl Freeze for MatchKind
impl RefUnwindSafe for MatchKind
impl Send for MatchKind
impl Sync for MatchKind
impl Unpin for MatchKind
impl UnwindSafe for MatchKind
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