cli: add bounded std copy/search and checked arithmetic
This commit is contained in:
36 files changed
+1533
-7
No files matched your search
@@ -179,7 +179,7 @@ Lowering: structured control flow becomes blocks and terminators. A variable ass
|
||||
| `s.len` | `slice.len`, or the static length of an array |
|
||||
| `s[a..b]` | a sub-slice (`slice.sub` with start `a`, length `b - a`); a borrow, so it is bound or passed, never a value |
|
||||
| `let (left, right) = s.split_at(k);` | `slice.split`: two disjoint borrows of `s`. Besides `atomic.compare_exchange` (§12), the only multi-result binding. There is no general tuple destructuring. |
|
||||
| `slice.copy(mut dst, ref src)` | `slice.copy`, the only copy form |
|
||||
| `slice.copy(mut dst, ref src)` | primitive `slice.copy`; insufficient capacity traps. Recoverable byte copy is `std.bytes.copy` (spec 16 §2.4). |
|
||||
|
||||
**Writes.**
|
||||
|
||||
|
||||
Reference in new issue
Block a user