pub struct Metadata {
pub id: AttributeId,
pub macro_attributes: SmallVec<[TrackedAssignment; 3]>,
}
Available on crate feature
attributes
only.Expand description
Metadata associated with an attribute or macro name.
Fields§
§id: AttributeId
The id to uniquely identify an attribute in the MetadataCollection.
macro_attributes: SmallVec<[TrackedAssignment; 3]>
If non-zero in length, this entry belongs to a macro which resolves to these attribute names.
Trait Implementations§
source§impl From<AttributeId> for Metadata
impl From<AttributeId> for Metadata
source§fn from(order: AttributeId) -> Metadata
fn from(order: AttributeId) -> Metadata
Converts to this type from the input type.
source§impl Ord for Metadata
impl Ord for Metadata
source§impl PartialEq<Metadata> for Metadata
impl PartialEq<Metadata> for Metadata
source§impl PartialOrd<Metadata> for Metadata
impl PartialOrd<Metadata> for Metadata
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 Metadata
impl StructuralEq for Metadata
impl StructuralPartialEq for Metadata
Auto Trait Implementations§
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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