Struct rustc_ap_rustc_data_structures::ptr_key::PtrKey [−][src]
pub struct PtrKey<'a, T>(pub &'a T);
Expand description
A wrapper around reference that compares and hashes like a pointer.
Can be used as a key in sets/maps indexed by pointers to avoid unsafe
.
Trait Implementations
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for PtrKey<'a, T> where
T: RefUnwindSafe,
impl<'a, T> UnwindSafe for PtrKey<'a, T> where
T: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V