Originally I was wanting Borrow<U> for StaticCollect<T> where T: Borrow<U> for (efficient) use as the key type in a BTreeMap, but this seems to be impossible due to the std blanket implementation of Borrow<T> for T. Rust really needs negative trait bounds... or at least a NotSame<T, U> trait or something... But I digress lol
Just adds a few trait impls to
StaticCollect
:From<T>
AsRef<T>
AsMut<T>
Deref<Target = T>
DerefMut
Borrow<T>
BorrowMut<T>
Originally I was wanting
Borrow<U> for StaticCollect<T> where T: Borrow<U>
for (efficient) use as the key type in aBTreeMap
, but this seems to be impossible due to the std blanket implementation ofBorrow<T> for T
. Rust really needs negative trait bounds... or at least aNotSame<T, U>
trait or something... But I digress lol