pub enum DiscoverySource {
ExplicitSysroot,
LeanSysrootEnv,
ElanHome,
Path,
LakeFixtureEnv,
}Expand description
Which probe produced the resolved toolchain.
Variants§
ExplicitSysroot
Caller supplied DiscoverOptions::explicit_sysroot.
LeanSysrootEnv
Caller had LEAN_SYSROOT exported in the environment.
ElanHome
Resolved via $ELAN_HOME + elan show active-toolchain.
Path
Resolved via lean --print-prefix on PATH.
LakeFixtureEnv
Resolved via lake env printenv LEAN_SYSROOT under a workspace fixture.
Trait Implementations§
Source§impl Clone for DiscoverySource
impl Clone for DiscoverySource
Source§fn clone(&self) -> DiscoverySource
fn clone(&self) -> DiscoverySource
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 DiscoverySource
impl Debug for DiscoverySource
Source§impl PartialEq for DiscoverySource
impl PartialEq for DiscoverySource
Source§fn eq(&self, other: &DiscoverySource) -> bool
fn eq(&self, other: &DiscoverySource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DiscoverySource
impl Eq for DiscoverySource
impl StructuralPartialEq for DiscoverySource
Auto Trait Implementations§
impl Freeze for DiscoverySource
impl RefUnwindSafe for DiscoverySource
impl Send for DiscoverySource
impl Sync for DiscoverySource
impl Unpin for DiscoverySource
impl UnsafeUnpin for DiscoverySource
impl UnwindSafe for DiscoverySource
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