Structsยง
- Check
Transmutes ๐ - Undefined
Transmute ๐Lint
Staticsยง
- PTR_
TO_ INTEGER_ TRANSMUTE_ IN_ CONSTS - The
ptr_to_integer_transmute_in_consts
lint detects pointer to integer transmute in const functions and associated constants. - UNNECESSARY_
TRANSMUTES - The
unnecessary_transmutes
lint detects transmutations that have safer alternatives.
Functionsยง
- check_
ptr_ ๐transmute_ in_ const - Check for transmutes that exhibit undefined behavior. For example, transmuting pointers to integers in a const context.
- check_
unnecessary_ ๐transmute - Check for transmutes that overlap with stdlib methods.
For example, transmuting
[u8; 4]
tou32
.