[−][src]Trait rustc_middle::ty::query::sealed::IntoQueryParam

pub trait IntoQueryParam<P> {
    pub fn into_query_param(self) -> P;
}

An analogue of the Into trait that's intended only for query paramaters.

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

pub fn into_query_param(self) -> P[src]

Loading content...

Implementations on Foreign Types

impl IntoQueryParam<DefId> for LocalDefId[src]

Loading content...

Implementors

impl<P> IntoQueryParam<P> for P[src]

Loading content...