Skip to main content

Module attribute

Module attribute 

Source
Expand description

Attribute definition and usage metadata. Field helper type used by the query macros.

The Field<S> type is a small, const-friendly wrapper around a 16-byte attribute id (RawId) and a phantom type parameter S indicating the value schema for that attribute. We keep construction simple and const-friendly so fields can be declared as pub const F: Field<ShortString> = Field::from(hex!("..."));.

Re-exports§

pub use crate::id::RawId as RawIdAlias;

Structs§

Attribute
A typed reference to an attribute id together with its value schema.
AttributeUsage
Describes a concrete usage of an attribute in source code.
AttributeUsageSource
Source location metadata for attribute usages.