pub enum LeanWorkerProcessModuleOutcome {
Ok {
file: LeanWorkerProcessedFile,
imports: Vec<String>,
},
MissingImports {
file: LeanWorkerProcessedFile,
imports: Vec<String>,
missing: Vec<String>,
},
HeaderParseFailed {
diagnostics: LeanWorkerElabFailure,
},
Unsupported,
}Expand description
Outcome of LeanWorkerSession::process_module. Mirrors
lean_rs_host::process::ProcessModuleOutcome.
Variants§
Ok
Header parsed; every parsed import is present in the session’s open env; the body was processed.
MissingImports
Header parsed but some imports name modules the session’s open env does not have. The body was still processed against the available env.
HeaderParseFailed
Lean.Parser.parseHeader reported error-severity messages; the body
was never elaborated.
Fields
§
diagnostics: LeanWorkerElabFailureUnsupported
The capability dylib does not export
lean_rs_host_process_module_with_info_tree.
Trait Implementations§
Source§impl Clone for LeanWorkerProcessModuleOutcome
impl Clone for LeanWorkerProcessModuleOutcome
Source§fn clone(&self) -> LeanWorkerProcessModuleOutcome
fn clone(&self) -> LeanWorkerProcessModuleOutcome
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<'de> Deserialize<'de> for LeanWorkerProcessModuleOutcome
impl<'de> Deserialize<'de> for LeanWorkerProcessModuleOutcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LeanWorkerProcessModuleOutcome
impl PartialEq for LeanWorkerProcessModuleOutcome
Source§fn eq(&self, other: &LeanWorkerProcessModuleOutcome) -> bool
fn eq(&self, other: &LeanWorkerProcessModuleOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LeanWorkerProcessModuleOutcome
impl StructuralPartialEq for LeanWorkerProcessModuleOutcome
Auto Trait Implementations§
impl Freeze for LeanWorkerProcessModuleOutcome
impl RefUnwindSafe for LeanWorkerProcessModuleOutcome
impl Send for LeanWorkerProcessModuleOutcome
impl Sync for LeanWorkerProcessModuleOutcome
impl Unpin for LeanWorkerProcessModuleOutcome
impl UnsafeUnpin for LeanWorkerProcessModuleOutcome
impl UnwindSafe for LeanWorkerProcessModuleOutcome
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