[−][src]Struct rustc_ap_rustc_data_structures::ptr_key::PtrKey
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
impl<'a, T> Clone for PtrKey<'a, T>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a, T> Copy for PtrKey<'a, T>
[src]
impl<'a, T: Debug> Debug for PtrKey<'a, T>
[src]
impl<'a, T> Deref for PtrKey<'a, T>
[src]
impl<'a, T> Eq for PtrKey<'a, T>
[src]
impl<'a, T> Hash for PtrKey<'a, T>
[src]
fn hash<H: Hasher>(&self, hasher: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'a, T> PartialEq<PtrKey<'a, T>> for PtrKey<'a, T>
[src]
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for PtrKey<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T> Send for PtrKey<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Sync for PtrKey<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Unpin for PtrKey<'a, T>
impl<'a, T> UnwindSafe for PtrKey<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Erased for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,