Skip to main content

uses_entities

Attribute Macro uses_entities 

Source
#[uses_entities]
Expand description

Marks the impl block to enable entity tracking.

When applied to an impl block or individual method, automatically enables the ENABLE_ENTITY interest flag so entities are tracked during parsing.

ยงExamples

#[observer]
#[uses_entities]
impl MyObs {
    // Now you can use #[on_entity] handlers
}