pub enum EvidenceStatus {
Checked,
Rejected,
Unavailable,
Unsupported,
}Expand description
What the kernel-check capability concluded about a piece of Lean source.
The tag accessor on LeanKernelOutcome::status returns values of
this type, as does crate::LeanSession::check_evidence when
re-validating a captured crate::LeanEvidence handle.
Variants§
Checked
The kernel accepted the declaration. A crate::LeanEvidence
handle is available on the LeanKernelOutcome::Checked branch.
Rejected
The declaration was well-formed enough to reach kernel checking, and the kernel (or the elaborator’s type-check pass) refused it.
The capability ran but could not produce evidence—typically a parse failure that aborted before the kernel could see the declaration.
Unsupported
The source did not name a kind of declaration this capability
produces evidence for (for example a #check command, a
non-theorem definition, or a comment-only fragment).
Trait Implementations§
Source§impl Clone for EvidenceStatus
impl Clone for EvidenceStatus
Source§fn clone(&self) -> EvidenceStatus
fn clone(&self) -> EvidenceStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for EvidenceStatus
Source§impl Debug for EvidenceStatus
impl Debug for EvidenceStatus
impl Eq for EvidenceStatus
Source§impl PartialEq for EvidenceStatus
impl PartialEq for EvidenceStatus
impl StructuralPartialEq for EvidenceStatus
Source§impl<'lean> TryFromLean<'lean> for EvidenceStatus
impl<'lean> TryFromLean<'lean> for EvidenceStatus
Source§fn try_from_lean(obj: Obj<'lean>) -> LeanResult<Self>
fn try_from_lean(obj: Obj<'lean>) -> LeanResult<Self>
Decode a nullary-only Lean EvidenceStatus inductive.
Tag order is Checked = 0, Rejected = 1, Unavailable = 2,
Unsupported = 3, matching the declaration order in
fixtures/lean/LeanRsFixture/Elaboration.lean’s EvidenceStatus
inductive.