match_primitive_type

Function match_primitive_type 

Source
pub fn match_primitive_type<'tcx>(
    tcx: TyCtxt<'tcx>,
    type_ident: String,
) -> Option<Ty<'tcx>>
Expand description

Match a string against Rust’s primitive types, returning the corresponding Ty from the type context.