pub trait AsQuery<S> {
// Required method
fn into_query(self) -> Option<Query<S>>;
}Expand description
Anything that can become a query clause in scope S. A clause may be absent
(into_query returns None) — that’s what makes an
Option<Query<S>> a first-class optional filter.
Required Methods§
Sourcefn into_query(self) -> Option<Query<S>>
fn into_query(self) -> Option<Query<S>>
The clause this produces, or None to contribute nothing.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".