Skip to content

Add a skeleton Data Representation chapter #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions reference/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
- [Uninhabited types like `!` and exhaustiveness](./active_discussion/uninhabited_types.md)
- [Unions](./active_discussion/unions.md)
- [Uninitialized memory](./active_discussion/uninitialized_memory.md)
- [Data representation](./representation.md)
- [Optimizations](./optimizations.md)
- [Optimizing immutable memory](./optimizations/immutable_memory.md)
28 changes: 28 additions & 0 deletions reference/src/representation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Data structure representation

## Introduction

## Representation of scalars

https://github.com/rust-rfcs/unsafe-code-guidelines/issues/9

## Representation of structs and tuples

https://github.com/rust-rfcs/unsafe-code-guidelines/issues/11
https://github.com/rust-rfcs/unsafe-code-guidelines/issues/12

## Representation of enums

https://github.com/rust-rfcs/unsafe-code-guidelines/issues/10

## Representation of unions

https://github.com/rust-rfcs/unsafe-code-guidelines/issues/13

## Representation of references and raw pointers

https://github.com/rust-rfcs/unsafe-code-guidelines/issues/16

## Representation of function pointers

https://github.com/rust-rfcs/unsafe-code-guidelines/issues/14