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
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
)