Skip to content

Commit c8f4a32

Browse files
committed
---
yaml --- r: 224440 b: refs/heads/beta c: 7d41c95 h: refs/heads/master v: v3
1 parent 176bce8 commit c8f4a32

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: cb4f081b5e8278e0445ae67320fb80d274cd8e11
26+
refs/heads/beta: 7d41c950c4e73dee4d5b44022186aa65e4323375
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 938f5d7af401e2d8238522fed4a612943b6e77fd
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/data.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Low-level programming cares a lot about data layout. It's a big deal. It also pe
44
influences the rest of the language, so we're going to start by digging into how data is
55
represented in Rust.
66

7-
# The `rust` repr
7+
## The rust repr
88

99
Rust gives you the following ways to lay out composite data:
1010

@@ -124,7 +124,7 @@ In principle enums can use fairly elaborate algorithms to cache bits throughout
124124
with special constrained representations. As such it is *especially* desirable that we leave
125125
enum layout unspecified today.
126126

127-
# Dynamically Sized Types (DSTs)
127+
## Dynamically Sized Types (DSTs)
128128

129129
Rust also supports types without a statically known size. On the surface,
130130
this is a bit nonsensical: Rust must know the size of something in order to
@@ -212,12 +212,12 @@ struct Foo {
212212
For details as to *why* this is done, and how to make it not happen, check out
213213
[SOME OTHER SECTION].
214214

215-
# Alternative representations
215+
## Alternative representations
216216

217217
Rust allows you to specify alternative data layout strategies from the default Rust
218218
one.
219219

220-
# repr(C)
220+
### repr(C)
221221

222222
This is the most important `repr`. It has fairly simple intent: do what C does.
223223
The order, size, and alignment of fields is exactly what you would expect from
@@ -241,14 +241,14 @@ still consumes a byte of space.
241241

242242
* This is equivalent to repr(u32) for enums (see below)
243243

244-
# repr(packed)
244+
### repr(packed)
245245

246246
`repr(packed)` forces rust to strip any padding it would normally apply.
247247
This may improve the memory footprint of a type, but will have negative
248248
side-effects from "field access is heavily penalized" to "completely breaks
249249
everything" based on target platform.
250250

251-
# repr(u8), repr(u16), repr(u32), repr(u64)
251+
### repr(u8), repr(u16), repr(u32), repr(u64)
252252

253253
These specify the size to make a c-like enum (one which has no values in its variants).
254254

0 commit comments

Comments
 (0)