1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-02-10 04:33:37 +02:00

Use table layout for no_std page.

This commit is contained in:
Andrew Walbran 2023-02-17 03:00:03 +00:00
parent 005d6a5ed4
commit 40d590b594

View File

@ -1,6 +1,25 @@
# `no_std`
## `core`
<table>
<tr>
<th>
`core`
</th>
<th>
`alloc`
</th>
<th>
`std`
</th>
</tr>
<tr valign="top">
<td>
* Slices, `&str`, `CStr`
* `NonZeroU8`...
@ -13,13 +32,15 @@
* `fence`, `AtomicBool`, `AtomicPtr`, `AtomicU32`...
* `Duration`
## `alloc`
</td>
<td>
* `Box`, `Cow`, `Arc`, `Rc`
* `Vec`, `BinaryHeap`, `BtreeMap`, `LinkedList`, `VecDeque`
* `String`, `CString`, `format!`
## `std`
</td>
<td>
* `Error`
* `HashMap`
@ -32,8 +53,13 @@
* `spawn`, `sleep` and the rest of `thread`
* `SystemTime`, `Instant`
</td>
</tr>
</table>
<details>
* `HashMap` depends on RNG.
* `std` re-exports the contents of both `core` and `alloc`.
</details>