pub struct LeanModuleInitializer { /* private fields */ }Expand description
Initializer for a Lean module hosted by a loaded dylib.
Implementations§
Source§impl LeanModuleInitializer
impl LeanModuleInitializer
Sourcepub fn new(package: impl Into<String>, module: impl Into<String>) -> Self
pub fn new(package: impl Into<String>, module: impl Into<String>) -> Self
Create an initializer descriptor from Lake package and root module names.
Sourcepub fn package_name(&self) -> &str
pub fn package_name(&self) -> &str
Lake package name used by the initializer.
Sourcepub fn module_name(&self) -> &str
pub fn module_name(&self) -> &str
Root Lean module name used by the initializer.
Trait Implementations§
Source§impl Clone for LeanModuleInitializer
impl Clone for LeanModuleInitializer
Source§fn clone(&self) -> LeanModuleInitializer
fn clone(&self) -> LeanModuleInitializer
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 LeanModuleInitializer
impl Debug for LeanModuleInitializer
Source§impl PartialEq for LeanModuleInitializer
impl PartialEq for LeanModuleInitializer
Source§fn eq(&self, other: &LeanModuleInitializer) -> bool
fn eq(&self, other: &LeanModuleInitializer) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LeanModuleInitializer
impl StructuralPartialEq for LeanModuleInitializer
Auto Trait Implementations§
impl Freeze for LeanModuleInitializer
impl RefUnwindSafe for LeanModuleInitializer
impl Send for LeanModuleInitializer
impl Sync for LeanModuleInitializer
impl Unpin for LeanModuleInitializer
impl UnsafeUnpin for LeanModuleInitializer
impl UnwindSafe for LeanModuleInitializer
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