pub enum DynamicLibraryCreationMode {
Executable,
Open(String),
Process,
}
Expand description
Represents the different methods to create a DynamicLibrary
.
Variants§
Executable
Creates a dynamic library representing the running executable.
Open(String)
Loads a dynamic library file with local visibility.
Process
Creates a dynamic library holding all global symbols.
Implementations§
Source§impl DynamicLibraryCreationMode
impl DynamicLibraryCreationMode
Sourcepub fn open(path: impl Into<String>) -> Self
pub fn open(path: impl Into<String>) -> Self
a suger method for DynamicLibraryCreationMode::Open
Trait Implementations§
Source§impl Clone for DynamicLibraryCreationMode
impl Clone for DynamicLibraryCreationMode
Source§fn clone(&self) -> DynamicLibraryCreationMode
fn clone(&self) -> DynamicLibraryCreationMode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DynamicLibraryCreationMode
impl Debug for DynamicLibraryCreationMode
Source§impl From<DynamicLibraryCreationMode> for Option<DynamicLibraryPlatformConfig>
impl From<DynamicLibraryCreationMode> for Option<DynamicLibraryPlatformConfig>
Source§fn from(mode: DynamicLibraryCreationMode) -> Self
fn from(mode: DynamicLibraryCreationMode) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DynamicLibraryCreationMode
impl RefUnwindSafe for DynamicLibraryCreationMode
impl Send for DynamicLibraryCreationMode
impl Sync for DynamicLibraryCreationMode
impl Unpin for DynamicLibraryCreationMode
impl UnwindSafe for DynamicLibraryCreationMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more