cfrancia / spectral

Fluent test assertions for Rust
Apache License 2.0
160 stars 13 forks source link

Add a contains method for iterators #2

Closed trentsummerfield closed 8 years ago

trentsummerfield commented 8 years ago

This replaces the contains method for Vec with a more generic implementation. This version of contains supports anything that implements IntoIterator.

trentsummerfield commented 8 years ago

I had to drop the existing vec contains implementation otherwise the compiler would complain that it didn't know which implementation to use.