Skip to main content

Module property_set

Module property_set 

Source
Expand description

Interned collection of PropertySet instances. Each PropertySet contains properties where the names and the values are statically allocated. The user is expected to manage the cardinality: this holds for key = static expr values too, since every distinct combination is interned and never freed.

Structs§

DynProperty
A property whose value is not 'static. The name is either 'static (new, referenced by address) or block-scoped (with_dyn_name, copied into the block like a dynamic value). Names from outside Rust, or otherwise unbounded, belong in with_dyn_name.
PROPERTY_SET_DEP_TYPE_NAME
Property
PropertySet
PropertySetDependency
PropertySetId
Identifies a property set within one block’s events: the address of an interned set, or the id of a record in the block’s dynamic dependency queue.

Traits§

PropertyDepsQueue
A dependency queue that can receive the records of a property set.
StringDepsQueue
A dependency queue that can receive string records.

Functions§

apply_pairs
Adds pairs in order, each one replacing an earlier property of the same name (case-insensitive), so the last one wins.
callsite_set
Interns the literal properties of one macro callsite on first use. cell is a static emitted by the macro, so each callsite pays one atomic load afterwards.
dyn_property_get
property_get
static_value
Identity, but only accepts a &'static str: a borrowed value passed to a key = static expr property is a lifetime error at the call site.