fn generics_of_static_method_container(type_context: ty::ctxt,
                                       provenance: ast::MethodProvenance)
                                       -> ty::Generics {
    match provenance {
        ast::FromTrait(trait_def_id) => {
            ty::lookup_trait_def(type_context, trait_def_id).generics
        }
        ast::FromImpl(impl_def_id) => {
            ty::lookup_item_type(type_context, impl_def_id).generics
        }
    }
}
// Given the provenance of a static method, returns the generics of the static
// method's container.
Given the provenance of a static method, returns the generics of the static
method's container.
Given the provenance of a static method returns the generics of the static method ' s container .
fn generics_of_static_method_container(type_context: ty::ctxt,
                                       provenance: ast::MethodProvenance)
                                       -> ty::Generics {
    match provenance {
        ast::FromTrait(trait_def_id) => {
            ty::lookup_trait_def(type_context, trait_def_id).generics
        }
        ast::FromImpl(impl_def_id) => {
            ty::lookup_item_type(type_context, impl_def_id).generics
        }
    }
}
fn generics_of_static_method_container ( type_context : ty :: ctxt , provenance : ast :: MethodProvenance ) -> ty :: Generics { match provenance { ast :: FromTrait ( trait_def_id ) => { ty :: lookup_trait_def ( type_context , trait_def_id ) . generics } ast :: FromImpl ( impl_def_id ) => { ty :: lookup_item_type ( type_context , impl_def_id ) . generics } } }
Given the provenance of a static method, returns the generics of the static
method's container.
Given the provenance of a static method returns the generics of the static method ' s container .
type_context
ty::ctxt
provenance
ast::MethodProvenance
type_context
ty::ctxt
provenance
ast::MethodProvenance