pub trait Query: Copy {
// Required methods
fn setup(&self, context: &Context);
fn get_query(&self) -> Vec<(TypeId, IndexValue)>;
}
Expand description
Encapsulates a person query.
Context::query_people
actually takes an instance of Query
, but because
we implement Query for tuples of up to size 20, that’s invisible
to the caller. Do not use this trait directly.
Required Methods§
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.