Data Representation in Rust
Low-level programming cares a lot about data layout. It’s a big deal. It alsopervasively influences the rest of the language, so we’re going to start bydigging into how data is represented in Rust.
This chapter is ideally in agreement with, and rendered redundant by,the Type Layout section of the Reference. When thisbook was first written, the reference was in complete disrepair, and theRustonomicon was attempting to serve as a partial replacement for the reference.This is no longer the case, so this whole chapter can ideally be deleted.
We’ll keep this chapter around for a bit longer, but ideally you should becontributing any new facts or improvements to the Reference instead.
当前内容版权归 rust-lang.org 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 rust-lang.org .