Skip to main content

Module arch

Module arch 

Source
Expand description

Conversions that are only lossless for the current architecture.

§Portability

Callers of this module become dependent on the setting of CONFIG_64BIT. Use with caution, and never in code that is portable across pointer sizes.

Traits§

FromSafeCastArch
Trait identical to FromSafeCast, but for conversions that are not available on all architectures.
IntoSafeCastArch
Trait identical to IntoSafeCast, but for conversions that are not available on all architectures.

Functions§

u64_as_usize
A u64 fits into a usize on 64-bit platforms.