Trait IntoQuery

Source
pub trait IntoQuery: DefaultFilter + for<'a> View<'a> {
    // Required method
    fn query() -> Query<Self, <Self as DefaultFilter>::Filter>;
}
Expand description

Converts a View into a Query.

Required Methods§

Source

fn query() -> Query<Self, <Self as DefaultFilter>::Filter>

Converts the View type into a Query.

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.

Implementors§

Source§

impl<T: DefaultFilter + for<'a> View<'a>> IntoQuery for T