Function rustc::middle::trans::adt::trans_switch[src]
pub fn trans_switch(bcx: &Block, r: &Repr, scrutinee: ValueRef) -> (branch_kind, Option<ValueRef>)
Obtain a representation of the discriminant sufficient to translate destructuring; this may or may not involve the actual discriminant.
This should ideally be less tightly tied to _match.