Crate cellular_raza_core_proc_macro

Source
Expand description

This crate provides powerful macros to derive traits from the core crate. It also provides macros to automatically construct AuxStorage structs used to store intermediate data for running update steps and Communicator struct to send messages between threads running the simulation.

All macros are documented in the core crate unless their functionality can be displayed without any additional dependencies.

Modulesยง

aux_storage ๐Ÿ”’
The main two macros are derive_aux_storage and construct_aux_storage which allow to derive individual aspects of the the update traits in cellular_raza_core
communicator ๐Ÿ”’
from_map ๐Ÿ”’
kwargs ๐Ÿ”’
run_sim ๐Ÿ”’
simulation_aspects ๐Ÿ”’
testing ๐Ÿ”’

Macrosยง

aux_storage_constructor
build_aux_storage
build_communicator
communicator_generics_placeholders
Inserts as many blanks as generics were used to create the communicator struct by build_communicator!.
prepare_types
Prepares communicator and auxiliary storage types with build_communicator! and build_aux_storage!.
run_main
run_simulation
run_test_for_aspects
Run a particularly structured test multiple times for combinations of aspects
test_compatibility
Checks if defined types and concepts are compatible before actually executing the simulation.

Derive Macrosยง

AuxStorage
Communicator
FromMap