pub enum Value {
MacroAssignments {
id: AttributeId,
assignments: SmallVec<[TrackedAssignment; 3]>,
},
Assignments(SmallVec<[TrackedAssignment; 3]>),
}
Available on crate feature
attributes
only.Expand description
A value of a pattern mapping, which is either a macro definition or a set of attributes.
Variants§
MacroAssignments
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: SmallVec<[TrackedAssignment; 3]>
The attributes or assignments that the macro resolves to.
A macro, whose name resolves to the contained assignments. Note that the name is the pattern of the mapping itself.
Assignments(SmallVec<[TrackedAssignment; 3]>)
A set of assignments which are the attributes themselves.
Trait Implementations§
source§impl Ord for Value
impl Ord for Value
source§impl PartialEq<Value> for Value
impl PartialEq<Value> for Value
source§impl PartialOrd<Value> for Value
impl PartialOrd<Value> for Value
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Value
impl StructuralEq for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more