Type Alias ValuesCache

Source
pub type ValuesCache = BTreeMap<String, Rc<dyn Any>>;
Expand description

type used to store results of executions and pass it to further solver instances

Aliased Type§

pub struct ValuesCache { /* private fields */ }

Trait Implementations§

Source§

impl Cache for ValuesCache

Source§

fn get_value<T>(&self, name: &str) -> Result<T, SolverError>
where T: Clone + 'static,

Retrieves a value from the solver. It is required to know the name and type of the asset. Cast error will return SolveError::AssetWrongType
Source§

fn save_value<T>(&mut self, name: &String, value: T)
where T: Clone + 'static,

Saves a value to be available during execution. This routine can be used to feed initial values for Assets. i.e. unbond assets Assets not generated by any Task.
Source§

fn save_value_str<T>(&mut self, name: &str, value: T)
where T: Clone + 'static,

Saves a value to be available during execution. This routine can be used to feed initial values for Assets. i.e. unbond assets Assets not generated by any Task.