Trait splr::types::PropertyReference
source · pub trait PropertyReference<I, O> {
// Required method
fn refer(&self, key: I) -> &O;
}
Expand description
API for accessing internal data in a module.
For example, State::progress
needs to access misc parameters and statistics,
which, however, should be used locally in the defining modules.
To avoid to make them public, we define a generic accessor or exporter here.