Function rustc::traits::type_known_to_meet_bound
[−]
[src]
pub fn type_known_to_meet_bound<'a, 'gcx, 'tcx>(
infcx: &InferCtxt<'a, 'gcx, 'tcx>,
param_env: ParamEnv<'tcx>,
ty: Ty<'tcx>,
def_id: DefId,
span: Span
) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Determines whether the type ty
is known to meet bound
and
returns true if so. Returns false if ty
either does not meet
bound
or is not known to meet bound (note that this is
conservative towards no impl, which is the opposite of the
evaluate
methods).