Struct sharedlib::Func [] [src]

pub struct Func<'a, T> {
    // some fields omitted
}

A pointer to a shared function which uses a bound lifetime to avoid outliving its library.

Methods

impl<'a, T> Func<'a, T>
[src]

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

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

Trait Implementations

impl<'a, T> Symbol<T> for Func<'a, T> where T: Copy
[src]

unsafe fn get(&self) -> T

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