pub trait ValueDimension {
    // Required methods
    fn get_value<T: 'static>(&self, key: &str) -> Option<&T>;
    fn set_value<T: 'static + Sync + Send>(&mut self, key: &str, value: T);
}
Expand description

A trait to return arbitrary typed value by its key.

Required Methods§

source

fn get_value<T: 'static>(&self, key: &str) -> Option<&T>

Gets value from dimension with given key.

source

fn set_value<T: 'static + Sync + Send>(&mut self, key: &str, value: T)

Sets value in dimension with given key and value.

Object Safety§

This trait is not object safe.

Implementors§