Trait cameleon_genapi::store::ValueStore
source · pub trait ValueStore {
// Required methods
fn value_opt<T>(&self, id: T) -> Option<&ValueData>
where T: Into<ValueId>;
fn update<T, U>(&mut self, id: T, value: U) -> Option<ValueData>
where T: Into<ValueId>,
U: Into<ValueData>;
// Provided methods
fn value(&self, id: impl Into<ValueId>) -> &ValueData { ... }
fn integer_value(&self, id: IntegerId) -> Option<i64> { ... }
fn float_value(&self, id: FloatId) -> Option<f64> { ... }
fn str_value(&self, id: StringId) -> Option<&String> { ... }
}