fn load_from(where_: LibraryPath<'_>) -> Result<Self, LibraryError> {
        let statics = Self::root_module_statics();
        statics.root_mod.try_init(|| {
            let lib = statics.raw_lib.try_init(|| -> Result<_, LibraryError> {
                let raw_library = load_raw_library::<Self>(where_)?;

                // if the library isn't leaked
                // it would cause any use of the module to be a use after free.
                //
                // By leaking the library
                // this allows the root module loader to do anything that'd prevent
                // sound library unloading.
                Ok(leak_value(raw_library))
            })?;
            let items = unsafe { lib_header_from_raw_library(lib)? };

            items.ensure_layout::<Self>()?;

            // safety: the layout was checked in the code above,
            unsafe {
                items
                    .init_root_module_with_unchecked_layout::<Self>()?
                    .initialization()
            }
        })
    }
/// Loads this module from the path specified by `where_`,
/// first loading the dynamic library if it wasn't already loaded.
///
/// Once the root module is loaded,
/// this will return the already loaded root module.
///
/// # Warning
///
/// If this function is called within a dynamic library,
/// it must be called either within the root module loader function or
/// after that function has been called.
///
/// **DO NOT** call this in the static initializer of a dynamic library,
/// since this library relies on setting up its global state before
/// calling the root module loader.
///
/// # Errors
///
/// This will return these errors:
///
/// - `LibraryError::OpenError`:
/// If the dynamic library itself could not be loaded.
///
/// - `LibraryError::GetSymbolError`:
/// If the root module was not exported.
///
/// - `LibraryError::InvalidAbiHeader`:
/// If the abi_stable version used by the library is not compatible.
///
/// - `LibraryError::ParseVersionError`:
/// If the version strings in the library can't be parsed as version numbers,
/// this can only happen if the version strings are manually constructed.
///
/// - `LibraryError::IncompatibleVersionNumber`:
/// If the version number of the library is incompatible.
///
/// - `LibraryError::AbiInstability`:
/// If the layout of the root module is not the expected one.
///
/// - `LibraryError::RootModule` :
/// If the root module initializer returned an error or panicked.
///
Loads this module from the path specified by `where_`,
first loading the dynamic library if it wasn't already loaded.

Once the root module is loaded,
this will return the already loaded root module.
Loads this module from the path specified by ` where_ ` first loading the dynamic library if it wasn ' t already loaded . Once the root module is loaded this will return the already loaded root module .
fn load_from(where_: LibraryPath<'_>) -> Result<Self, LibraryError> {
        let statics = Self::root_module_statics();
        statics.root_mod.try_init(|| {
            let lib = statics.raw_lib.try_init(|| -> Result<_, LibraryError> {
                let raw_library = load_raw_library::<Self>(where_)?;
                // if the library isn't leaked
                // it would cause any use of the module to be a use after free.
                //
                // By leaking the library
                // this allows the root module loader to do anything that'd prevent
                // sound library unloading.
                Ok(leak_value(raw_library))
            })?;
            let items = unsafe { lib_header_from_raw_library(lib)? };
            items.ensure_layout::<Self>()?;
            // safety: the layout was checked in the code above,
            unsafe {
                items
                    .init_root_module_with_unchecked_layout::<Self>()?
                    .initialization()
            }
        })
    }
fn load_from ( where_ : LibraryPath < ' _ > ) -> Result < Self , LibraryError > { let statics = Self :: root_module_statics ( ) ; statics . root_mod . try_init ( | | { let lib = statics . raw_lib . try_init ( | | -> Result < _ , LibraryError > { let raw_library = load_raw_library :: < Self > ( where_ ) ? ; // if the library isn't leaked // it would cause any use of the module to be a use after free. // // By leaking the library // this allows the root module loader to do anything that'd prevent // sound library unloading. Ok ( leak_value ( raw_library ) ) } ) ? ; let items = unsafe { lib_header_from_raw_library ( lib ) ? } ; items . ensure_layout :: < Self > ( ) ? ; // safety: the layout was checked in the code above, unsafe { items . init_root_module_with_unchecked_layout :: < Self > ( ) ? . initialization ( ) } } ) }
Loads this module from the path specified by `where_`,
first loading the dynamic library if it wasn't already loaded.
Loads this module from the path specified by ` where_ ` first loading the dynamic library if it wasn ' t already loaded .
where_
LibraryPath<'_>
where_
LibraryPath<'_>
warning
If this function is called within a dynamic library,
it must be called either within the root module loader function or
after that function has been called.

DO NOT** call this in the static initializer of a dynamic library,
since this library relies on setting up its global state before
calling the root module loader.
If this function is called within a dynamic library it must be called either within the root module loader function or after that function has been called . DO NOT ** call this in the static initializer of a dynamic library since this library relies on setting up its global state before calling the root module loader .
errors
This will return these errors.

`LibraryError::OpenError`:
If the dynamic library itself could not be loaded.

`LibraryError::GetSymbolError`:
If the root module was not exported.

`LibraryError::InvalidAbiHeader`:
If the abi_stable version used by the library is not compatible.

`LibraryError::ParseVersionError`:
If the version strings in the library can't be parsed as version numbers,
this can only happen if the version strings are manually constructed.

`LibraryError::IncompatibleVersionNumber`:
If the version number of the library is incompatible.

`LibraryError::AbiInstability`:
If the layout of the root module is not the expected one.

`LibraryError::RootModule` :
If the root module initializer returned an error or panicked.
This will return these errors . ` LibraryError :: OpenError ` : If the dynamic library itself could not be loaded . ` LibraryError :: GetSymbolError ` : If the root module was not exported . ` LibraryError :: InvalidAbiHeader ` : If the abi_stable version used by the library is not compatible . ` LibraryError :: ParseVersionError ` : If the version strings in the library can ' t be parsed as version numbers this can only happen if the version strings are manually constructed . ` LibraryError :: IncompatibleVersionNumber ` : If the version number of the library is incompatible . ` LibraryError :: AbiInstability ` : If the layout of the root module is not the expected one . ` LibraryError :: RootModule ` : If the root module initializer returned an error or panicked .