Skip to main content

IntoRootQuery

Trait IntoRootQuery 

Source
pub trait IntoRootQuery<M>
where M: Filterable,
{ // Required method fn into_root_query(self) -> <<M as Filterable>::Root as Filterable>::Query; }
Expand description

The query of M (a root’s query model, or a mirror’s query parameters), converting along its chain of mirrored models into the root model’s query.

Implemented by the derive for every Filters struct’s query; the root model’s query converts into itself. M is a parameter (rather than found through Filterable) so the impl is no more visible than M, which may be private while its generated query is public; with a single impl per query, query.into_root_query() infers it.

Required Methods§

Source

fn into_root_query(self) -> <<M as Filterable>::Root as Filterable>::Query

Convert into the root model’s query.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§