Struct petgraph::graphmap::Ptr [−][src]
pub struct Ptr<'b, T: 'b>(pub &'b T);
A reference that is hashed and compared by its pointer value.
Ptr is used for certain configurations of GraphMap,
in particular in the combination where the node type for
GraphMap is something of type for example Ptr(&Cell<T>),
with the Cell<T> being TypedArena allocated.
Trait Implementations
impl<'b, T> Clone for Ptr<'b, T>[src]
impl<'b, T> Clone for Ptr<'b, T>[src]fn clone(&self) -> Self[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<'b, T> Ord for Ptr<'b, T>[src]
impl<'b, T> Ord for Ptr<'b, T>[src]fn cmp(&self, other: &Ptr<'b, T>) -> Ordering[src]
Ptr is ordered by pointer value, i.e. an arbitrary but stable and total order.
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]
pub fn max(self, other: Self) -> Self#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]
pub fn min(self, other: Self) -> Self#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
#[must_use]
pub fn clamp(self, min: Self, max: Self) -> Selfimpl<'b, T> PartialOrd<Ptr<'b, T>> for Ptr<'b, T>[src]
impl<'b, T> PartialOrd<Ptr<'b, T>> for Ptr<'b, T>[src]impl<'b, T> Copy for Ptr<'b, T>[src]
impl<'b, T> Eq for Ptr<'b, T>[src]
Auto Trait Implementations
impl<'b, T> RefUnwindSafe for Ptr<'b, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'b, T> Send for Ptr<'b, T> where
T: Sync,
T: Sync,
impl<'b, T> Sync for Ptr<'b, T> where
T: Sync,
T: Sync,
impl<'b, T> Unpin for Ptr<'b, T>
impl<'b, T> UnwindSafe for Ptr<'b, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> CallHasher for T where
T: Hash, [src]
impl<T> CallHasher for T where
T: Hash, [src]impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]pub fn equivalent(&self, key: &K) -> bool[src]
impl<N> NodeTrait for N where
N: Copy + Ord + Hash, [src]
N: Copy + Ord + Hash,