InstrumentedBase is collecting data about number of new, clone, drop, eq, partial cmp and cmp from Instrumented instates.
let n = count_operations(vec![2, 1, 3, 4], |x| x.sort());
println!("{:?}", n);
Attempt to do Efficient Programming with Components: Lecture 3 Part 1 and Efficient Programming with Components: Lecture 3 Part 2 from C++ to Rust.