pub fn trans_switch(bcx: &Block, r: &Repr, scrutinee: ValueRef)
    -> (_match::branch_kind, Option<ValueRef>) {
    match *r {
        CEnum(..) | General(..) => {
            (_match::switch, Some(trans_get_discr(bcx, r, scrutinee, None)))
        }
        NullablePointer{ nonnull: ref nonnull, nndiscr, ptrfield, .. } => {
            (_match::switch, Some(nullable_bitdiscr(bcx, nonnull, nndiscr, ptrfield, scrutinee)))
        }
        Univariant(..) => {
            (_match::single, None)
        }
    }
}
/**
 * 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`.
 */
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`.
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 ` .
pub fn trans_switch(bcx: &Block, r: &Repr, scrutinee: ValueRef)
    -> (_match::branch_kind, Option<ValueRef>) {
    match *r {
        CEnum(..) | General(..) => {
            (_match::switch, Some(trans_get_discr(bcx, r, scrutinee, None)))
        }
        NullablePointer{ nonnull: ref nonnull, nndiscr, ptrfield, .. } => {
            (_match::switch, Some(nullable_bitdiscr(bcx, nonnull, nndiscr, ptrfield, scrutinee)))
        }
        Univariant(..) => {
            (_match::single, None)
        }
    }
}
pub fn trans_switch ( bcx : & Block , r : & Repr , scrutinee : ValueRef ) -> ( _match :: branch_kind , Option < ValueRef > ) { match * r { CEnum ( .. ) | General ( .. ) => { ( _match :: switch , Some ( trans_get_discr ( bcx , r , scrutinee , None ) ) ) } NullablePointer { nonnull : ref nonnull , nndiscr , ptrfield , .. } => { ( _match :: switch , Some ( nullable_bitdiscr ( bcx , nonnull , nndiscr , ptrfield , scrutinee ) ) ) } Univariant ( .. ) => { ( _match :: single , None ) } } }
Obtain a representation of the discriminant sufficient to translate
 destructuring; this may or may not involve the actual discriminant.
Obtain a representation of the discriminant sufficient to translate destructuring ; this may or may not involve the actual discriminant .
bcx
&Block
r
&Repr
scrutinee
ValueRef
bcx
&Block
r
&Repr
scrutinee
ValueRef