Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Refinedrust Dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lennard Gäher
Refinedrust Dev
Commits
04827002
Verified
Commit
04827002
authored
1 week ago
by
Lennard Gäher
Browse files
Options
Downloads
Patches
Plain Diff
fix
parent
5750145a
No related branches found
No related tags found
No related merge requests found
Pipeline
#118218
failed
1 week ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
stdlib/iterator/src/traits/iterator.rs
+2
-2
2 additions, 2 deletions
stdlib/iterator/src/traits/iterator.rs
with
2 additions
and
2 deletions
stdlib/iterator/src/traits/iterator.rs
+
2
−
2
View file @
04827002
...
...
@@ -18,11 +18,11 @@ pub trait Iterator {
#[rr::args(
"(it_state, γ)"
)]
/// Postcondition: There exists an optional next item and the successor state of the iterator.
#[rr::exists(
"x"
:
"option {xt_of Item}"
,
"new_it_state"
:
"{xt_of Self}"
)]
/// Postcondition: The state of the iterator has been updated.
#[rr::observe(
"γ"
:
"($# new_it_state)"
)]
/// Postcondition: If there is a next item, it obeys the iterator's relation, and similarly the
/// successor state is determined.
#[rr::ensures(
#
iris
"{Next} ($# it_state) (<$#>@{{option}} x) ($# new_it_state)"
)]
/// Postcondition: The state of the iterator has been updated.
#[rr::observe(
"γ"
:
"($# new_it_state)"
)]
/// Postcondition: We return the optional next element.
#[rr::returns(
"x"
)]
fn
next
(
&
mut
self
)
->
Option
<
Self
::
Item
>
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment