pub enum Verdict {
Reject(Reason),
Decline(Reason),
}Expand description
The kernel’s decision on an input it did not accept. Reject: the input is wrong. Decline: the
input may be right, but this reader does not accept it (and never approximates it).
Variants§
Implementations§
Source§impl Verdict
impl Verdict
pub fn reason(&self) -> &Reason
Sourcepub fn code(&self) -> i32
pub fn code(&self) -> i32
The benchmark protocol’s exit code: 1 for a rejection, 2 for a decline.
Sourcepub fn at_line(self, line: usize) -> Verdict
pub fn at_line(self, line: usize) -> Verdict
The same verdict, recorded as arising at 1-based input line (the innermost line wins).
Sourcepub fn in_declaration(self, name: impl Into<String>) -> Verdict
pub fn in_declaration(self, name: impl Into<String>) -> Verdict
The same verdict, recorded as arising in the Lean declaration name (the innermost wins).
Trait Implementations§
Source§impl From<KernelError> for Verdict
impl From<KernelError> for Verdict
Source§fn from(error: KernelError) -> Verdict
fn from(error: KernelError) -> Verdict
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Verdict
impl RefUnwindSafe for Verdict
impl Send for Verdict
impl Sync for Verdict
impl Unpin for Verdict
impl UnsafeUnpin for Verdict
impl UnwindSafe for Verdict
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
§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>
Convert
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>
Convert
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)
Convert
&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)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.