pub fn partition_bounds<'a, 'b, 'gcx, 'tcx>(ast_bounds: &'b [hir::TyParamBound])
    -> PartitionedBounds<'b>
{
    let mut region_bounds = Vec::new();
    let mut trait_bounds = Vec::new();
    for ast_bound in ast_bounds {
        match *ast_bound {
            hir::TraitTyParamBound(ref b, hir::TraitBoundModifier::None) => {
                trait_bounds.push(b);
            }
            hir::TraitTyParamBound(_, hir::TraitBoundModifier::Maybe) => {}
            hir::RegionTyParamBound(ref l) => {
                region_bounds.push(l);
            }
        }
    }

    PartitionedBounds {
        trait_bounds: trait_bounds,
        region_bounds: region_bounds,
    }
}
/// Divides a list of bounds from the AST into two groups: general trait bounds and region bounds
Divides a list of bounds from the AST into two groups: general trait bounds and region bounds
Divides a list of bounds from the AST into two groups : general trait bounds and region bounds
pub fn partition_bounds<'a, 'b, 'gcx, 'tcx>(ast_bounds: &'b [hir::TyParamBound])
    -> PartitionedBounds<'b>
{
    let mut region_bounds = Vec::new();
    let mut trait_bounds = Vec::new();
    for ast_bound in ast_bounds {
        match *ast_bound {
            hir::TraitTyParamBound(ref b, hir::TraitBoundModifier::None) => {
                trait_bounds.push(b);
            }
            hir::TraitTyParamBound(_, hir::TraitBoundModifier::Maybe) => {}
            hir::RegionTyParamBound(ref l) => {
                region_bounds.push(l);
            }
        }
    }
    PartitionedBounds {
        trait_bounds: trait_bounds,
        region_bounds: region_bounds,
    }
}
pub fn partition_bounds < ' a , ' b , ' gcx , ' tcx > ( ast_bounds : & ' b [ hir :: TyParamBound ] ) -> PartitionedBounds < ' b > { let mut region_bounds = Vec :: new ( ) ; let mut trait_bounds = Vec :: new ( ) ; for ast_bound in ast_bounds { match * ast_bound { hir :: TraitTyParamBound ( ref b , hir :: TraitBoundModifier :: None ) => { trait_bounds . push ( b ) ; } hir :: TraitTyParamBound ( _ , hir :: TraitBoundModifier :: Maybe ) => { } hir :: RegionTyParamBound ( ref l ) => { region_bounds . push ( l ) ; } } } PartitionedBounds { trait_bounds : trait_bounds , region_bounds : region_bounds , } }
Divides a list of bounds from the AST into two groups: general trait bounds and region bounds
Divides a list of bounds from the AST into two groups : general trait bounds and region bounds
ast_bounds
&'b [hir::TyParamBound]