pub trait Contextual: Clone {
// Required method
fn get_condition(&self) -> Condition;
// Provided methods
fn filter_by_eval(
contexts: Vec<Self>,
dimension_data: &Map<String, Value>,
) -> Vec<Self> { ... }
fn filter_exact_match(
contexts: Vec<Self>,
dimension_data: &Map<String, Value>,
) -> Vec<Self> { ... }
fn filter_by_dimension(
contexts: Vec<Self>,
dimension_keys: &[String],
) -> Vec<Self> { ... }
}Required Methods§
fn get_condition(&self) -> Condition
Provided Methods§
fn filter_by_eval( contexts: Vec<Self>, dimension_data: &Map<String, Value>, ) -> Vec<Self>
fn filter_exact_match( contexts: Vec<Self>, dimension_data: &Map<String, Value>, ) -> Vec<Self>
fn filter_by_dimension( contexts: Vec<Self>, dimension_keys: &[String], ) -> Vec<Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.