Module global_properties

Source
Expand description

A generic mechanism for storing context-wide data.

Global properties are not mutable and represent variables that are required in a global scope during the simulation, such as simulation parameters. A global property can be of any type, and is is just a value stored in the context. Global properties are defined by the define_global_property!() macro and can then be set in one of two ways:

Attempting to change a global property which has been set already will result in an error.

Global properties can be read with Context::get_global_property_value()

Macros§

define_global_property
Defines a global property with the following parameters:

Structs§

PropertyAccessors

Traits§

ContextGlobalPropertiesExt
GlobalProperty
The trait representing a global property. Do not use this directly, but instead define global properties with [define_global_property()]

Functions§

add_global_property