Module transmute

Source

Structsยง

CheckTransmutes ๐Ÿ”’
UndefinedTransmuteLint ๐Ÿ”’

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] to u32.