Struct sharedlib::FuncTracked [] [src]

pub struct FuncTracked<T, TLib> {
    // some fields omitted
}

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

Methods

impl<T, TLib> FuncTracked<T, TLib>
[src]

fn new(func: FuncUnsafe<T>, lib: TLib) -> Self

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

Trait Implementations

impl<T, TLib> Symbol<T> for FuncTracked<T, TLib> where T: Copy
[src]

unsafe fn get(&self) -> T

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

impl<T, TLib> Clone for FuncTracked<T, TLib> where T: Copy, TLib: Clone
[src]

fn clone(&self) -> Self

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

Derived Implementations

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

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.