Crate dess_proc_macros
source ·Attribute Macros§
- Generates list of commonly used derives
- Generates pyo3 api for struct.
Helper attributes:skip_get
– skips generating getter for fieldwalk
– at struct level, tells macro to generatewalk_py
method that callswalk
- Generates several methods for struct to create solver framework
Derive Macros§
- Derives
bare_clone
method - Derives
save_state
method for struct and all fields marked withsave_state
oruse_state
attributes - generate HistoryVec that acts like a vec of States but stores each field of state as a vec field.
- Dummy derive macro for registering [pyo3_api] attributes.
This may not be the cleanest way to do this.