Struct by_address::ByAddress
[−]
[src]
pub struct ByAddress<T: ?Sized>(pub T)
where
T: Deref;
Wrapper for pointer types that implements by-address comparison.
See the crate-level documentation for details.
Trait Implementations
impl<T: Copy + ?Sized> Copy for ByAddress<T> where
T: Deref,
[src]
T: Deref,
impl<T: Clone + ?Sized> Clone for ByAddress<T> where
T: Deref,
[src]
T: Deref,
fn clone(&self) -> ByAddress<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Debug + ?Sized> Debug for ByAddress<T> where
T: Deref,
[src]
T: Deref,
impl<T: Default + ?Sized> Default for ByAddress<T> where
T: Deref,
[src]
T: Deref,
impl<T: ?Sized> PartialEq for ByAddress<T> where
T: Deref,
[src]
T: Deref,
Raw pointer equality
fn eq(&self, other: &Self) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<T: ?Sized> Eq for ByAddress<T> where
T: Deref,
[src]
T: Deref,
impl<T: ?Sized> Ord for ByAddress<T> where
T: Deref,
[src]
T: Deref,
Raw pointer ordering
fn cmp(&self, other: &Self) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl<T: ?Sized> PartialOrd for ByAddress<T> where
T: Deref,
[src]
T: Deref,
Raw pointer comparison
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<T: ?Sized> Hash for ByAddress<T> where
T: Deref,
[src]
T: Deref,
Raw pointer hashing
fn hash<H: Hasher>(&self, state: &mut H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T: ?Sized> Deref for ByAddress<T> where
T: Deref,
[src]
T: Deref,
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.
impl<T: ?Sized> DerefMut for ByAddress<T> where
T: Deref,
[src]
T: Deref,
impl<T: ?Sized, U> AsRef<U> for ByAddress<T> where
T: Deref + AsRef<U>,
[src]
T: Deref + AsRef<U>,
impl<T: ?Sized, U> AsMut<U> for ByAddress<T> where
T: Deref + AsMut<U>,
[src]
T: Deref + AsMut<U>,
impl<T> From<T> for ByAddress<T> where
T: Deref,
[src]
T: Deref,