Trait splr::types::PropertyReference[][src]

pub trait PropertyReference<I, O> {
    fn refer(&self, key: I) -> &O;
}

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.

Required methods

fn refer(&self, key: I) -> &O[src]

Loading content...

Implementors

Loading content...