I just bumped into this today. Iāve got a Vec<String>, and Iād like to use .contains("static string") instead of having to do something like .iter().any(|v| v == "static_string"). So a big thumbs up for this!
People have asked for this before. It hasnāt happened yet because thatās a breaking change in cases where inference determines the concrete type of T. I agree itās a bit ridiculous that we canāt use .contains("foo") on a Vec<String>, but yeah. See https://github.com/rust-lang/rust/pull/37761