Function rustc_trans::trans::expr::trans_adtExperimental
[-]
[+]
[src]
pub fn trans_adt<'a, 'blk, 'tcx>(bcx: Block<'blk, 'tcx>, ty: Ty<'tcx>, discr: Disr, fields: &[(uint, &Expr)], optbase: Option<StructBaseInfo<'a, 'tcx>>, dest: Dest, source_location: Option<NodeInfo>) -> Block<'blk, 'tcx>
Constructs an ADT instance:
fieldsshould be a list of field indices paired with the expression to store into that field. The initializers will be evaluated in the order specified byfields.optbasecontains information on the base struct (if any) from which remaining fields are copied; see comments onStructBaseInfo.