Trait rustc_middle::ty::query::sealed::IntoQueryParam
source · pub trait IntoQueryParam<P> {
fn into_query_param(self) -> P;
}Expand description
An analogue of the Into trait that’s intended only for query parameters.
This exists to allow queries to accept either DefId or LocalDefId while requiring that the
user call to_def_id to convert between them everywhere else.
Required Methods
source