[][src]Function glsp::take_lib

pub fn take_lib<T>() -> Result<T, GError> where
    T: Lib

Unregisters a value previously registered using glsp::add_lib, and returns it.

Returns Err if no library is registered for the type T, or if a library exists but it's currently borrowed.