about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorhuangjiahua <jiahua.h@outlook.com>2020-04-18 14:58:38 +0800
committerhuangjiahua <jiahua.h@outlook.com>2020-04-18 14:58:38 +0800
commit1a1863b815d0db6aa1751e88e7044e9e2f02ac51 (patch)
treed1fceb8380c43ee54f721a0b694479f83faffcf8 /src/rustllvm/RustWrapper.cpp
parent4e4d49d60fd696c4036d438292673a2d7fd34519 (diff)
downloadrust-1a1863b815d0db6aa1751e88e7044e9e2f02ac51.tar.gz
rust-1a1863b815d0db6aa1751e88e7044e9e2f02ac51.zip
Add example in the alternative in std::mem::transmute docs
It is safer to use `from_ne_bytes` to convert raw bytes to type like u32.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions