Skip to main content

Crate salsa_macros

Crate salsa_macros 

Source
Expand description

Procedural macros for defining Salsa databases, ingredients, and queries.

This crate is an implementation detail of salsa. Its macros are re-exported from that crate and should normally be invoked through the salsa:: path.

See the salsa crate documentation for the concepts behind each macro.

Attribute Macros§

accumulator
Defines a type whose values can be accumulated by tracked functions.
db
Defines a Salsa database struct or database trait.
input
Defines a mutable input to a Salsa database.
interned
Defines an interned struct.
tracked
Defines a tracked struct or function, or enables tracked methods in an impl block.

Derive Macros§

SalsaValue
Derives the unsafe salsa::SalsaValue trait for a struct or enum.
Supertype
Derives a heterogeneous query key from an enum of Salsa structs.