Expand description
Platform-agnostic support types.
Structsยง
- Padding ๐
- A transparent wrapper over
MaybeUninit<T>to represent uninitialized padding while providingDefault.
Functionsยง
- replace_
array_ items - Replace bytes in an array with those from a slice. This is a polyfill for
[T]::copy_from_sliceinconst. - u8_
slice_ ๐cast_ char_ slice - u16_
cast_ ๐short - Used to avoid
overflowing_literalswhen the value is in-range for the unsigned number but out-of-range for signed. - u32_
cast_ ๐int - Used to avoid
overflowing_literalswhen the value is in-range for the unsigned number but out-of-range for signed. - u32_
cast_ ๐ioctl - Used to avoid
overflowing_literalswhen the value is in-range for the unsigned number but out-of-range for signed. - u32_
cast_ ๐long - Used to avoid
overflowing_literalswhen the value is in-range for the unsigned number but out-of-range for signed. - ulong_
cast_ ๐int - Checked casting from
unsigned longtoint. - ulong_
cast_ ๐uint - Checked casting from
unsigned longtounsigned int.
Type Aliasesยง
- CEnum
Repr ๐