[][src]Struct abi_stable::library::RawLibrary

pub struct RawLibrary { /* fields omitted */ }

A handle to any dynamically loaded library, not necessarily ones that export abi_stable compatible modules.

Methods

impl RawLibrary[src]

pub fn path_in_directory(
    directory: &Path,
    base_name: &str,
    suffix: LibrarySuffix
) -> PathBuf
[src]

Gets the full path a library would be loaded from,

pub fn load_at(full_path: &Path) -> Result<Self, LibraryError>[src]

Loads the dynamic library at the full_path path.

pub unsafe fn get<T>(
    &self,
    symbol_name: &[u8]
) -> Result<LLSymbol<T>, LibraryError>
[src]

Gets access to a static/function declared by the library.

Safety

Passing a T of a type different than the compiled library declared is undefined behavior.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SelfOps for T where
    T: ?Sized
[src]

impl<This> TransmuteElement for This where
    This: ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The error type returned when the conversion fails.

impl<T> TypeIdentity for T where
    T: ?Sized
[src]

type Type = T

The same type as Self. Read more