Skip to content

Commit 2e00888

Browse files
committed
Added another alternative from kballard
1 parent 01e9ad9 commit 2e00888

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

active/0000-unsafe-api-location.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@ There are a few alternatives:
140140
some_string.slice_unchecked(start, end)
141141
```
142142

143+
* Another suggestion by @kballard is to keep the basic structure of `raw`
144+
submodules, but use associated types to improve the ergonomics. Details (and
145+
discussions of pros/cons) are in
146+
[this comment](https://github.com/rust-lang/rfcs/pull/240/files#r17572875).
147+
143148
* Use `raw` submodules to group together *all* manipulation of low-level
144149
representations. No module in `std` currently does this; existing modules
145150
provide some free functions in `raw`, and some unsafe methods, without a clear

0 commit comments

Comments
 (0)