#[non_exhaustive]pub struct ToolchainInfo {
pub prefix: PathBuf,
pub lean_binary: Option<PathBuf>,
pub header_path: PathBuf,
pub lib_dir: PathBuf,
pub version: String,
pub fingerprint: ToolchainFingerprint,
pub source: DiscoverySource,
}Expand description
Outcome of a successful discovery.
#[non_exhaustive] so additional fields can be added without breaking
downstream pattern-matchers.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.prefix: PathBufThe discovered Lean prefix directory (<prefix>/include/lean/lean.h exists).
lean_binary: Option<PathBuf><prefix>/bin/lean if present on disk.
header_path: PathBuf<prefix>/include/lean/lean.h.
lib_dir: PathBuf<prefix>/lib.
version: StringVersion string parsed at discovery time (from a lean-toolchain file,
version.h, or lean --version). Falls back to LEAN_VERSION from
lean-rs-sys when no live source is available.
fingerprint: ToolchainFingerprintBuild-baked fingerprint (does not vary with discovery results).
source: DiscoverySourceWhich probe won.
Trait Implementations§
Source§impl Clone for ToolchainInfo
impl Clone for ToolchainInfo
Source§fn clone(&self) -> ToolchainInfo
fn clone(&self) -> ToolchainInfo
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 moreAuto Trait Implementations§
impl Freeze for ToolchainInfo
impl RefUnwindSafe for ToolchainInfo
impl Send for ToolchainInfo
impl Sync for ToolchainInfo
impl Unpin for ToolchainInfo
impl UnsafeUnpin for ToolchainInfo
impl UnwindSafe for ToolchainInfo
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