pub struct Metadata {
pub id: AttributeId,
pub macro_attributes: Assignments,
}
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: Assignments
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) -> Self
fn from(order: AttributeId) -> Self
Converts to this type from the input type.
Source§impl Ord for Metadata
impl Ord for Metadata
Source§impl PartialOrd for Metadata
impl PartialOrd for Metadata
impl Eq for Metadata
impl StructuralPartialEq for Metadata
Auto Trait Implementations§
impl Freeze for Metadata
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