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.