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) -> Self
fn from(error: KernelError) -> Self
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