docs: define contract AIR bindings and access diagnostics
This commit is contained in:
1 parent
5ed0d86e36
commit
2db752dba9
9 files changed
+479
-6
No files matched your search
@@ -25,7 +25,7 @@ The claim is: every exposed checked value/shared content view satisfies its pred
|
||||
| Candidate operation | Type/transfer | Validation boundary |
|
||||
|---|---|---|
|
||||
| `checked.make checked<R, @p>, %r` | R → checked<R,@p>; move linear R, copy Copy R | observe the complete candidate through a temporary shared view; run p before exposing the result; false traps |
|
||||
| `checked.view %c` | ref<checked<R,@p>> → ref<R>, dependent owned shared child | no new check; ordinary lifetime/loan rules preserve the established claim |
|
||||
| `checked.view %c` | ref/mut<checked<R,@p>> → ref<R>, dependent owned shared child | no new check; ordinary lifetime/loan rules preserve the established claim |
|
||||
| `checked.take %c` | checked<R,@p> → R; consume linear capsule, copy Copy content | output is ordinary R with no invariant claim; live views block consuming the root |
|
||||
| `checked.modify %m, @f(args)` | mut<checked<R,@p>>; direct callback f receives a temporary lent mut<R> first, then ordinary typed arguments | suspend capsule access, call f, end its temporary mutation view, run p on the resulting R, then expose f's result |
|
||||
|
||||
|
||||
Reference in new issue
Block a user