Function rustc::middle::trans::adt::trans_switchExperimental
[-]
[+]
[src]
pub fn trans_switch(bcx: Block, r: &Repr, 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.