Text of rust.docs.kernel.org › next › kernel › num › casts › arch › index.html as Styx crawled it on Nov 19, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

kernel::num::casts::arch - Rust

Skip to main content Module arch kernel :: num :: casts 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 § From Safe Cast Arch Trait identical to FromSafeCast , but for conversions that are not available on all architectures.

Into Safe Cast Arch 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.