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