Trait dup_indexer::PtrRead
source · pub unsafe trait PtrRead { }
Expand description
A value that can be used as a key in a DupIndexer
, which will copy its content
using the ptr::read
function, while also owning it internally.
Safety
Implementing this trait is unsafe because the implementation must guarantee that
the value can be copied by copying the bits of the value assuming that the value
itself is valid and readonly. All Copy types are PtrRead
, but Box