pub struct VerifyBlock {
pub fn_name: String,
pub line: usize,
pub cases: Vec<(Expr, Expr)>,
pub case_spans: Vec<SourceSpan>,
pub case_givens: Vec<Vec<(String, Expr)>>,
pub kind: VerifyKind,
}Fields§
§fn_name: String§line: usize§cases: Vec<(Expr, Expr)>§case_spans: Vec<SourceSpan>§case_givens: Vec<Vec<(String, Expr)>>Per-case given bindings for law verify (empty for Cases kind).
kind: VerifyKindImplementations§
Source§impl VerifyBlock
impl VerifyBlock
Sourcepub fn new_unspanned(
fn_name: String,
line: usize,
cases: Vec<(Expr, Expr)>,
kind: VerifyKind,
) -> Self
pub fn new_unspanned( fn_name: String, line: usize, cases: Vec<(Expr, Expr)>, kind: VerifyKind, ) -> Self
Construct a VerifyBlock with default (zero) spans for each case. Use when source location tracking is not needed (codegen, tests).
pub fn iter_cases_with_spans( &self, ) -> impl Iterator<Item = (&(Expr, Expr), &SourceSpan)>
Trait Implementations§
Source§impl Clone for VerifyBlock
impl Clone for VerifyBlock
Source§fn clone(&self) -> VerifyBlock
fn clone(&self) -> VerifyBlock
Returns a duplicate of the value. Read more
1.0.0 · 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 VerifyBlock
impl Debug for VerifyBlock
Source§impl PartialEq for VerifyBlock
impl PartialEq for VerifyBlock
impl StructuralPartialEq for VerifyBlock
Auto Trait Implementations§
impl Freeze for VerifyBlock
impl RefUnwindSafe for VerifyBlock
impl Send for VerifyBlock
impl Sync for VerifyBlock
impl Unpin for VerifyBlock
impl UnsafeUnpin for VerifyBlock
impl UnwindSafe for VerifyBlock
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