/// Lift Option out of the symbol.
///
/// ## Examples
///
/// ```no_run
/// # use ::libloading::{Library, Symbol};
/// let lib = Library::new("/path/to/awesome.module").unwrap();
/// unsafe {
///     let symbol: Symbol<Option<*mut u32>> = lib.get(b"symbol\0").unwrap();
///     let symbol: Symbol<*mut u32> = symbol.lift_option().expect("static is not null");
/// }
/// ```
Lift Option out of the symbol.
Lift Option out of the symbol .
pub fn lift_option(self) -> Option<Symbol<'lib, T>> {
        self.inner.lift_option().map(|is| Symbol {
            inner: is,
            pd: marker::PhantomData,
        })
    }
pub fn lift_option ( self ) -> Option < Symbol < ' lib , T > > { self . inner . lift_option ( ) . map ( | is | Symbol { inner : is , pd : marker :: PhantomData , } ) }
Lift Option out of the symbol.
Lift Option out of the symbol .
self
examples
None
use ::libloading::{library, symbol};
let lib = Library::new("/path/to/awesome.module").unwrap();
unsafe {
let symbol: Symbol> = lib.get(b"symbol\0").unwrap();
let symbol: Symbol<*mut u32> = symbol.lift_option().expect("static is not null");
}
```
let lib = Library :: new ( " / path / to / awesome . module " ) . unwrap () ; unsafe { let symbol : Symbol > = lib . get ( b " symbol \ 0 " ) . unwrap () ; let symbol : Symbol< * mut u32 > = symbol . lift_option () . expect ( " static is not null " ) ; } ` ` `