Function rustc_lint::middle::const_eval::lookup_const_by_idUnstable
[-] [+]
[src]
pub fn lookup_const_by_id(tcx: &'a ctxt, def_id: DefId) -> Option<&'a Expr>
pub fn lookup_const_by_id(tcx: &'a ctxt, def_id: DefId) -> Option<&'a Expr>
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).