Ok, steady the pitchforks for a minute. I'm not suggesting that I'm right, but my interpretation of the docs seems to indicate that I should be able to do something like this:
let list = [Cow::from("abc")];
list.contains(&"abc");
According to the docs, contains() takes a PartialEq<T>, and Cow has this implementation PartialEq<&'b str>. I'm confused as to how my code doesn't satisfy those requirements.
Ah! Yes, your suggestion was how I was reading the docs. I missed that T was already a Cow, rather than being a generic over whatever type I passed to contains().