marcusklaas / sortedvec

Rust vector types without dependencies that enable quick lookups

Home Page:https://crates.io/crates/sortedvec/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Try to allow for more general keys

marcusklaas opened this issue · comments

Instead of having key function for<'t> FnMut(&'t T) -> &'t K, could we also have a FnMut(&'t T) -> K where K: 't?

Should work! Keys don't have to references now.