Function rexiv2::initialize [] [src]

pub fn initialize() -> Result<()>

Initialize gexiv2.

This must be called in a thread-safe fashion before using rexiv2 in multi-threaded applications.

Example

use std::sync::{Once, ONCE_INIT};
fn main() {
    static START: Once = ONCE_INIT;

    START.call_once(|| unsafe {
        rexiv2::initialize().expect("Unable to initialize rexiv2");
    });
}