Testing multiple implementations of a trait in Rust

· Eli Bendersky · Nov. 6, 2021, 12:32 p.m.
Summary
I've been hacking on a small practice project in Rust where I implement the same data structure in several different ways. When testing this project, I want to run exactly the same set of tests on several types that implement the same trait. As a demonstrative example, let's take the …...
AUTHOR