pub enum EmissionFault {
Show 13 variants
Reparse {
message: String,
},
CommandCount {
expected: usize,
found: usize,
},
Missing {
logos: String,
},
Kind {
logos: String,
expected: DeclarationKind,
},
Levels {
logos: String,
expected: Vec<String>,
found: Vec<String>,
},
Type {
logos: String,
},
Body {
logos: String,
},
Constructors {
logos: String,
},
Undeclared {
logos: String,
},
Statement {
logos: String,
},
Unmapped {
name: String,
},
Recheck {
logos: String,
},
Structure {
logos: String,
},
}Expand description
Why an emitted document does not reparse to the imported declarations. Every variant names the LOGOS declaration it concerns.
Variants§
Reparse
The fresh context refused the document.
CommandCount
The document holds a different number of declaration commands than it should.
Missing
A declaration the document must declare is absent.
Kind
A declaration was registered as a different kind (a theorem that unfolds, an axiom with a proof, …).
Levels
A declaration’s universe parameters differ.
Type
A declaration’s type differs.
Body
A transparent definition’s body differs.
Constructors
An inductive’s parameter count or constructors differ.
Undeclared
The document declared something its correspondence does not list.
Statement
The target’s reparsed statement differs from the reference translation of the Lean type.
Unmapped
A reference term names a constant the correspondence does not map.
Recheck
The independent re-checker did not confirm a reparsed definition at its declared type.
Structure
An inductive gained, lost or changed its structure η (its projections).
Trait Implementations§
Source§impl Clone for EmissionFault
impl Clone for EmissionFault
Source§fn clone(&self) -> EmissionFault
fn clone(&self) -> EmissionFault
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EmissionFault
impl Debug for EmissionFault
Source§impl Display for EmissionFault
impl Display for EmissionFault
Source§impl PartialEq for EmissionFault
impl PartialEq for EmissionFault
impl Eq for EmissionFault
impl StructuralPartialEq for EmissionFault
Auto Trait Implementations§
impl Freeze for EmissionFault
impl RefUnwindSafe for EmissionFault
impl Send for EmissionFault
impl Sync for EmissionFault
impl Unpin for EmissionFault
impl UnsafeUnpin for EmissionFault
impl UnwindSafe for EmissionFault
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.