Function rustc_trans::trans::adt::trans_switchExperimental
[-]
[+]
[src]
pub fn trans_switch<'blk, 'tcx>(bcx: Block<'blk, 'tcx>, r: &Repr<'tcx>, scrutinee: ValueRef) -> (BranchKind, 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.