pub struct Attribute {
pub name: Path,
pub args: AttributeArgs,
pub span: Span,
}Expand description
Represents an attribute attached to an item.
Joule supports Rust-style attributes like #[energy_budget(max_joules = 0.5)].
Fields§
§name: PathThe name/path of the attribute (e.g., “energy_budget”)
args: AttributeArgsThe arguments to the attribute
span: SpanSource span
Trait Implementations§
impl StructuralPartialEq for Attribute
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
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