Function rustc_trans::trans::consts::get_const_valExperimental
[-]
[+]
[src]
pub fn get_const_val(cx: &CrateContext, def_id: DefId) -> ValueRef
pub fn get_const_val(cx: &CrateContext, def_id: DefId) -> ValueRef
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).