-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
Can this trick (essentially, compare sizeof &T::Target
to sizeof usize
) be used to eliminate the FIXME?
Lines 134 to 138 in 3bdda92
fn hash<H: Hasher>(&self, state: &mut H) { | |
// FIXME: For fat pointers to dynamically-sized types, this discards the extra data (vtable | |
// pointer or length), so it may have a high collision rate in certain cases. | |
(self.addr() as *const ()).hash(state) | |
} |
Metadata
Metadata
Assignees
Labels
No labels