pub struct IdentityWithPointer(/* private fields */);
Expand description
Identify an instance by its location in memory.
Implementations§
Source§impl IdentityWithPointer
impl IdentityWithPointer
Sourcepub fn make<T>(src: &T) -> IdentityWithPointer
pub fn make<T>(src: &T) -> IdentityWithPointer
Construct from an arbitrary reference.
Trait Implementations§
Source§impl Clone for IdentityWithPointer
impl Clone for IdentityWithPointer
Source§fn clone(&self) -> IdentityWithPointer
fn clone(&self) -> IdentityWithPointer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IdentityWithPointer
impl Debug for IdentityWithPointer
Source§impl Default for IdentityWithPointer
impl Default for IdentityWithPointer
Source§fn default() -> IdentityWithPointer
fn default() -> IdentityWithPointer
Returns the “default value” for a type. Read more
Source§impl<'a, T> From<&'a T> for IdentityWithPointer
impl<'a, T> From<&'a T> for IdentityWithPointer
Source§fn from(src: &'a T) -> IdentityWithPointer
fn from(src: &'a T) -> IdentityWithPointer
Converts to this type from the input type.
Source§impl Hash for IdentityWithPointer
impl Hash for IdentityWithPointer
Source§impl PartialEq for IdentityWithPointer
impl PartialEq for IdentityWithPointer
impl Copy for IdentityWithPointer
impl Eq for IdentityWithPointer
impl StructuralPartialEq for IdentityWithPointer
Auto Trait Implementations§
impl Freeze for IdentityWithPointer
impl RefUnwindSafe for IdentityWithPointer
impl Send for IdentityWithPointer
impl Sync for IdentityWithPointer
impl Unpin for IdentityWithPointer
impl UnwindSafe for IdentityWithPointer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Source§impl<Target, Original> VectorizedInto<Target> for Originalwhere
Target: VectorizedFrom<Original>,
impl<Target, Original> VectorizedInto<Target> for Originalwhere
Target: VectorizedFrom<Original>,
Source§fn vectorized_into(self) -> Target
fn vectorized_into(self) -> Target
Performs the conversion.