#[non_exhaustive]pub enum LeanWorkerModuleQueryOutcome {
Ok {
result: LeanWorkerModuleQueryResult,
imports: Vec<String>,
},
MissingImports {
result: LeanWorkerModuleQueryResult,
imports: Vec<String>,
missing: Vec<String>,
},
HeaderParseFailed {
diagnostics: LeanWorkerElabFailure,
},
Unsupported,
}Expand description
Outcome of LeanWorkerSession::process_module_query.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ok
Header parsed; every parsed import is present in the session’s open env; the query result is populated.
MissingImports
Header parsed but some imports name modules the session’s open env does not have. The body was still queried 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_query.
Trait Implementations§
Source§impl Clone for LeanWorkerModuleQueryOutcome
impl Clone for LeanWorkerModuleQueryOutcome
Source§fn clone(&self) -> LeanWorkerModuleQueryOutcome
fn clone(&self) -> LeanWorkerModuleQueryOutcome
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 LeanWorkerModuleQueryOutcome
impl Debug for LeanWorkerModuleQueryOutcome
Source§impl<'de> Deserialize<'de> for LeanWorkerModuleQueryOutcome
impl<'de> Deserialize<'de> for LeanWorkerModuleQueryOutcome
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LeanWorkerModuleQueryOutcome, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LeanWorkerModuleQueryOutcome, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LeanWorkerModuleQueryOutcome
Source§impl PartialEq for LeanWorkerModuleQueryOutcome
impl PartialEq for LeanWorkerModuleQueryOutcome
Source§fn eq(&self, other: &LeanWorkerModuleQueryOutcome) -> bool
fn eq(&self, other: &LeanWorkerModuleQueryOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LeanWorkerModuleQueryOutcome
impl Serialize for LeanWorkerModuleQueryOutcome
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for LeanWorkerModuleQueryOutcome
Auto Trait Implementations§
impl Freeze for LeanWorkerModuleQueryOutcome
impl RefUnwindSafe for LeanWorkerModuleQueryOutcome
impl Send for LeanWorkerModuleQueryOutcome
impl Sync for LeanWorkerModuleQueryOutcome
impl Unpin for LeanWorkerModuleQueryOutcome
impl UnsafeUnpin for LeanWorkerModuleQueryOutcome
impl UnwindSafe for LeanWorkerModuleQueryOutcome
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