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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)