mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 03:33:59 +00:00
cb9932ea64
do not claim that transmute is like memcpy Saying transmute is like memcpy is not a well-formed statement, since memcpy is by-ref whereas transmute is by-val. The by-val nature of transmute inherently means that padding is lost along the way. (This is not specific to transmute, this is how all by-value operations work.) So adjust the docs to clarify this aspect. Cc `@workingjubilee` |
||
---|---|---|
.. | ||
benches | ||
primitive_docs | ||
src | ||
tests | ||
Cargo.toml |