pub enum Value {
MacroAssignments {
id: AttributeId,
assignments: Assignments,
},
Assignments(Assignments),
}
Expand description
A value of a pattern mapping, which is either a macro definition or a set of attributes.
Variants§
MacroAssignments
A macro, whose name resolves to the contained assignments. Note that the name is the pattern of the mapping itself.
Fields
§
id: AttributeId
The id of the macro itself, which is both an attribute as well as a set of additional attributes into which the macro resolves
§
assignments: Assignments
The attributes or assignments that the macro resolves to.
Assignments(Assignments)
A set of assignments which are the attributes themselves.
Trait Implementations§
Source§impl Ord for Value
impl Ord for Value
Source§impl PartialOrd for Value
impl PartialOrd for Value
impl Eq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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