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");
But if I run it (https://is.gd/ikzhYj) then apparently I can’t!
According to the docs,
contains() takes a
Cow has this implementation
PartialEq<&'b str>. I’m confused as to how my code doesn’t satisfy those requirements.