Struct sharedlib::DataTracked [] [src]

pub struct DataTracked<T, TLib> { /* fields omitted */ }

A pointer to shared data which allows a user-provided ref-counting implementation to avoid outliving its library.

Methods

impl<T, TLib> DataTracked<T, TLib> where
    TLib: AsRef<LibUnsafe> + Clone
[src]

Creates a new DataTracked. This should only be called within the library.

Trait Implementations

impl<T: Clone, TLib: Clone> Clone for DataTracked<T, TLib>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug, TLib: Debug> Debug for DataTracked<T, TLib>
[src]

Formats the value using the given formatter.

impl<'a, T, TLib> Symbol<&'a T> for DataTracked<T, TLib>
[src]

Provides access to the data that this symbol references. Read more