I’m working on wrapping references to create a HashSet that is by reference (for efficiency primarily). I have run into an interesting problem: the
Hash implementation for
*const T requires that
T be sized. This places an undesirable constraint on my library implementation, and makes zero sense to me. Why should it matter what the pointer is pointing at given that we are hashing the pointer itself?!
Is this simply an oversight due to rust’s default Sized constraint? Is there any safe way around this constraint?