pub trait IntoQuery<'a> {
type Query;
// Required method
fn into_query(self) -> Self::Query;
}Expand description
A trait for converting a value into some kind of query.
This crate provides implementations for ComponentVecs. More specifically it provides
generic implementations for tuples of types that implement IntoRefOrMut.
§Examples
See Query for more interesting examples.
use checs::{ComponentVec, IntoQuery};
let ints: ComponentVec<i32> = ComponentVec::new();
let mut floats: ComponentVec<f32> = ComponentVec::new();
let query = (&ints, &mut floats).into_query();Required Associated Types§
Required Methods§
Sourcefn into_query(self) -> Self::Query
fn into_query(self) -> Self::Query
Creates a query from a value.