pub struct LoopSpec {
pub maintains: Vec<PreCondition>,
pub decreases: Option<LoopVariant>,
/* private fields */
}Expand description
Specifies the intended behavior of a loop: while or for.
Fields§
§maintains: Vec<PreCondition>Loop invariants: conditions that must hold both before and after the loop’s body runs.
decreases: Option<LoopVariant>Loop variant: an expression that decreases with each run of the loop’s body.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoopSpec
impl RefUnwindSafe for LoopSpec
impl !Send for LoopSpec
impl !Sync for LoopSpec
impl Unpin for LoopSpec
impl UnsafeUnpin for LoopSpec
impl UnwindSafe for LoopSpec
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