Skip to content

Commit cefe885

Browse files
committed
---
yaml --- r: 236023 b: refs/heads/stable c: 7d41c95 h: refs/heads/master i: 236021: 635d340 236019: 8e27be8 236015: 6a94029 v: v3
1 parent 3e9756f commit cefe885

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
@@ -29,7 +29,7 @@ refs/heads/tmp: afae2ff723393b3ab4ccffef6ac7c6d1809e2da0
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: f859507de8c410b648d934d8f5ec1c52daac971d
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: cb4f081b5e8278e0445ae67320fb80d274cd8e11
32+
refs/heads/stable: 7d41c950c4e73dee4d5b44022186aa65e4323375
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/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)