pub struct LeanLibraryDependency { /* private fields */ }Expand description
Dependency dylib that must stay alive while a capability is loaded.
Implementations§
Source§impl LeanLibraryDependency
impl LeanLibraryDependency
Sourcepub fn export_symbols_for_dependents(self) -> Self
pub fn export_symbols_for_dependents(self) -> Self
Make this dependency’s Lean symbols available to later dylibs in the same bundle.
This is a capability-level requirement, not a platform-loader flag in the public contract. On ELF platforms it maps to global symbol visibility; other platforms use the equivalent behavior provided by the native loader.
Sourcepub fn initializer(
self,
package: impl Into<String>,
module: impl Into<String>,
) -> Self
pub fn initializer( self, package: impl Into<String>, module: impl Into<String>, ) -> Self
Initialize a module from this dependency after it is opened.
Sourcepub fn exports_symbols_for_dependents(&self) -> bool
pub fn exports_symbols_for_dependents(&self) -> bool
Whether symbols from this dependency are exported to later bundle members.
Sourcepub fn module_initializer(&self) -> Option<&LeanModuleInitializer>
pub fn module_initializer(&self) -> Option<&LeanModuleInitializer>
Optional module initializer for this dependency.
Trait Implementations§
Source§impl Clone for LeanLibraryDependency
impl Clone for LeanLibraryDependency
Source§fn clone(&self) -> LeanLibraryDependency
fn clone(&self) -> LeanLibraryDependency
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LeanLibraryDependency
impl Debug for LeanLibraryDependency
Source§impl PartialEq for LeanLibraryDependency
impl PartialEq for LeanLibraryDependency
Source§fn eq(&self, other: &LeanLibraryDependency) -> bool
fn eq(&self, other: &LeanLibraryDependency) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LeanLibraryDependency
impl StructuralPartialEq for LeanLibraryDependency
Auto Trait Implementations§
impl Freeze for LeanLibraryDependency
impl RefUnwindSafe for LeanLibraryDependency
impl Send for LeanLibraryDependency
impl Sync for LeanLibraryDependency
impl Unpin for LeanLibraryDependency
impl UnsafeUnpin for LeanLibraryDependency
impl UnwindSafe for LeanLibraryDependency
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