Struct sharedlib::Data [] [src]

pub struct Data<'a, T> where T: 'a {
    // some fields omitted
}

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

Methods

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

fn new(data: &'a T) -> Self

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

Trait Implementations

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

unsafe fn get(&self) -> &'a T

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

Derived Implementations

impl<'a, T: Debug> Debug for Data<'a, T> where T: 'a
[src]

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

Formats the value using the given formatter.