Skip to main content

Module types

Module types 

Source
Expand description

Platform-agnostic support types.

Structsยง

Padding ๐Ÿ”’
A transparent wrapper over MaybeUninit<T> to represent uninitialized padding while providing Default.

Functionsยง

replace_array_items
Replace bytes in an array with those from a slice. This is a polyfill for [T]::copy_from_slice in const.
u8_slice_cast_char_slice ๐Ÿ”’
u16_cast_short ๐Ÿ”’
Used to avoid overflowing_literals when the value is in-range for the unsigned number but out-of-range for signed.
u32_cast_int ๐Ÿ”’
Used to avoid overflowing_literals when the value is in-range for the unsigned number but out-of-range for signed.
u32_cast_ioctl ๐Ÿ”’
Used to avoid overflowing_literals when the value is in-range for the unsigned number but out-of-range for signed.
u32_cast_long ๐Ÿ”’
Used to avoid overflowing_literals when the value is in-range for the unsigned number but out-of-range for signed.
ulong_cast_int ๐Ÿ”’
Checked casting from unsigned long to int.
ulong_cast_uint ๐Ÿ”’
Checked casting from unsigned long to unsigned int.

Type Aliasesยง

CEnumRepr ๐Ÿ”’