pub fn expand_boxed_vec_ty(tcx: ty::ctxt, t: ty::t) -> ty::t {
    let unit_ty = ty::sequence_element_type(tcx, t);
    let unboxed_vec_ty = ty::mk_mut_unboxed_vec(tcx, unit_ty);
    match ty::get(t).sty {
        ty::ty_str(ty::vstore_uniq) | ty::ty_vec(_, ty::vstore_uniq) => {
            ty::mk_uniq(tcx, unboxed_vec_ty)
        }
        ty::ty_str(ty::vstore_box) | ty::ty_vec(_, ty::vstore_box) => {
            ty::mk_box(tcx, unboxed_vec_ty)
        }
        _ => tcx.sess.bug("non boxed-vec type \
                           in tvec::expand_boxed_vec_ty")
    }
}
// Boxed vector types are in some sense currently a "shorthand" for a box
// containing an unboxed vector. This expands a boxed vector type into such an
// expanded type. It doesn't respect mutability, but that doesn't matter at
// this point.
Boxed vector types are in some sense currently a "shorthand" for a box
containing an unboxed vector. This expands a boxed vector type into such an
expanded type. It doesn't respect mutability, but that doesn't matter at
this point.
Boxed vector types are in some sense currently a " shorthand " for a box containing an unboxed vector . This expands a boxed vector type into such an expanded type . It doesn ' t respect mutability but that doesn ' t matter at this point .
pub fn expand_boxed_vec_ty(tcx: ty::ctxt, t: ty::t) -> ty::t {
    let unit_ty = ty::sequence_element_type(tcx, t);
    let unboxed_vec_ty = ty::mk_mut_unboxed_vec(tcx, unit_ty);
    match ty::get(t).sty {
        ty::ty_str(ty::vstore_uniq) | ty::ty_vec(_, ty::vstore_uniq) => {
            ty::mk_uniq(tcx, unboxed_vec_ty)
        }
        ty::ty_str(ty::vstore_box) | ty::ty_vec(_, ty::vstore_box) => {
            ty::mk_box(tcx, unboxed_vec_ty)
        }
        _ => tcx.sess.bug("non boxed-vec type \
                           in tvec::expand_boxed_vec_ty")
    }
}
pub fn expand_boxed_vec_ty ( tcx : ty :: ctxt , t : ty :: t ) -> ty :: t { let unit_ty = ty :: sequence_element_type ( tcx , t ) ; let unboxed_vec_ty = ty :: mk_mut_unboxed_vec ( tcx , unit_ty ) ; match ty :: get ( t ) . sty { ty :: ty_str ( ty :: vstore_uniq ) | ty :: ty_vec ( _ , ty :: vstore_uniq ) => { ty :: mk_uniq ( tcx , unboxed_vec_ty ) } ty :: ty_str ( ty :: vstore_box ) | ty :: ty_vec ( _ , ty :: vstore_box ) => { ty :: mk_box ( tcx , unboxed_vec_ty ) } _ => tcx . sess . bug ( " \
 " ) } }
Boxed vector types are in some sense currently a "shorthand" for a box
containing an unboxed vector.
Boxed vector types are in some sense currently a " shorthand " for a box containing an unboxed vector .
tcx
ty::ctxt
t
ty::t
tcx
ty::ctxt
t
ty::t