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]

impl<T: Clone + ?Sized> Clone for ByAddress<T> where
    T: Deref
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Debug + ?Sized> Debug for ByAddress<T> where
    T: Deref
[src]

[src]

Formats the value using the given formatter.

impl<T: Default + ?Sized> Default for ByAddress<T> where
    T: Deref
[src]

[src]

Returns the "default value" for a type. Read more

impl<T: ?Sized> PartialEq for ByAddress<T> where
    T: Deref
[src]

Raw pointer equality

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl<T: ?Sized> Eq for ByAddress<T> where
    T: Deref
[src]

impl<T: ?Sized> Ord for ByAddress<T> where
    T: Deref
[src]

Raw pointer ordering

[src]

This method returns an Ordering between self and other. Read more

1.22.0
[src]

Compares and returns the maximum of two values. Read more

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]

Raw pointer comparison

[src]

This method returns an ordering between self and other values if one exists. Read more

1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

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]

Raw pointer hashing

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<T: ?Sized> Deref for ByAddress<T> where
    T: Deref
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<T: ?Sized> DerefMut for ByAddress<T> where
    T: Deref
[src]

[src]

Mutably dereferences the value.

impl<T: ?Sized, U> AsRef<U> for ByAddress<T> where
    T: Deref + AsRef<U>, 
[src]

[src]

Performs the conversion.

impl<T: ?Sized, U> AsMut<U> for ByAddress<T> where
    T: Deref + AsMut<U>, 
[src]

[src]

Performs the conversion.

impl<T> From<T> for ByAddress<T> where
    T: Deref
[src]

[src]

Performs the conversion.