Skip to main content

primitive_type_to_ty

Function primitive_type_to_ty 

Source
fn primitive_type_to_ty<'tcx>(
    tcx: TyCtxt<'tcx>,
    prim: PrimitiveType,
) -> Option<Ty<'tcx>>
Expand description

Convert a PrimitiveType to a Ty, where possible.

This is used for resolving trait impls for primitives