Skip to main content

resource_impl

Attribute Macro resource_impl 

Source
#[resource_impl]
Expand description

Optional marker attribute for an impl Resource for T block.

Currently it re-emits the impl block unchanged — writing impl Resource for T directly is equivalent. It exists as the designated annotation point for resource impls so that future codegen (or tooling) has a stable hook, and to document intent at the impl site. Registration still happens via init!’s resources = [...] list.