[][src]Struct ptr_origin_tracker::Tracker

pub struct Tracker<T> where
    T: Debug,
    Cookie<T>: Hash + Eq,
    T: Trackable<Tracker = Self>, 
{ /* fields omitted */ }

Implementations

impl<T> Tracker<T> where
    Cookie<T>: Hash + Eq,
    T: Debug,
    T: Trackable<Tracker = Self>, 
[src]

pub fn new() -> Self[src]

pub fn track(handle: *mut T) -> Result<(), Error<T>>[src]

pub fn contains(handle: *mut T) -> bool[src]

Deprecated

pub fn exists(handle: *mut T) -> bool[src]

pub fn untrack(handle: *mut T) -> Result<(), Error<T>>[src]

pub fn cleanup<F>(f: F) where
    F: Fn(*mut T), 
[src]

Trait Implementations

impl<T> Clone for Tracker<T> where
    T: Debug,
    Cookie<T>: Hash + Eq,
    T: Trackable<Tracker = Self>, 
[src]

impl<T: Debug> Debug for Tracker<T> where
    T: Debug,
    Cookie<T>: Hash + Eq,
    T: Trackable<Tracker = Self>, 
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Tracker<T>

impl<T> Send for Tracker<T>

impl<T> Sync for Tracker<T>

impl<T> Unpin for Tracker<T>

impl<T> UnwindSafe for Tracker<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.