1 2 3 4 5 6 7 8
/// A trait to convert any type into a `Query`. /// For example implement this for your configuration /// and you can do `Query::new().with(config)` use super::Query; pub trait QueryWith<T> { fn with(&self, query: Query<T>) -> Query<T>; }