pub struct LeanModuleDiscoveryOptions { /* private fields */ }Expand description
Options for Lake module discovery.
Implementations§
Source§impl LeanModuleDiscoveryOptions
impl LeanModuleDiscoveryOptions
Sourcepub fn new(requested_root: impl Into<PathBuf>) -> Self
pub fn new(requested_root: impl Into<PathBuf>) -> Self
Discover modules for the Lake project at or below requested_root.
Sourcepub fn selected_roots(
self,
roots: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn selected_roots( self, roots: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Restrict discovery to these Lake module roots.
Sourcepub fn toolchain(self, toolchain: ToolchainFingerprint) -> Self
pub fn toolchain(self, toolchain: ToolchainFingerprint) -> Self
Override the toolchain fingerprint used for validation and fingerprints.
This is primarily useful for tests and external planners that compare a separately obtained toolchain identity.
Trait Implementations§
Source§impl Clone for LeanModuleDiscoveryOptions
impl Clone for LeanModuleDiscoveryOptions
Source§fn clone(&self) -> LeanModuleDiscoveryOptions
fn clone(&self) -> LeanModuleDiscoveryOptions
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 LeanModuleDiscoveryOptions
impl Debug for LeanModuleDiscoveryOptions
Source§impl PartialEq for LeanModuleDiscoveryOptions
impl PartialEq for LeanModuleDiscoveryOptions
Source§fn eq(&self, other: &LeanModuleDiscoveryOptions) -> bool
fn eq(&self, other: &LeanModuleDiscoveryOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LeanModuleDiscoveryOptions
impl StructuralPartialEq for LeanModuleDiscoveryOptions
Auto Trait Implementations§
impl Freeze for LeanModuleDiscoveryOptions
impl RefUnwindSafe for LeanModuleDiscoveryOptions
impl Send for LeanModuleDiscoveryOptions
impl Sync for LeanModuleDiscoveryOptions
impl Unpin for LeanModuleDiscoveryOptions
impl UnsafeUnpin for LeanModuleDiscoveryOptions
impl UnwindSafe for LeanModuleDiscoveryOptions
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