Function rustc::middle::trans::adt::const_get_field[src]

pub fn const_get_field(ccx: &CrateContext, r: &Repr, val: ValueRef, _discr: Disr, ix: uint) -> ValueRef

Extract a field of a constant value, as appropriate for its representation.

(Not to be confused with common::const_get_elt, which operates on raw LLVM-level structs and arrays.)