strip_{prefix|suffix}
{starts|ends}_with
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.