Function rustc::middle::trans::expr::with_field_tys[src]
pub fn with_field_tys<R>(tcx: &ctxt, ty: t, node_id_opt: Option<NodeId>, op: |Disr, &[field]| -> R) -> R
Helper for enumerating the field types of structs, enums, or records.
The optional node ID here is the node ID of the path identifying the enum
variant in use. If none, this cannot possibly an enum variant (so, if it
is and node_id_opt is none, this function fails).