Skip to main content

usize_as_native_mut

Function usize_as_native_mut 

Source
pub fn usize_as_native_mut(val: &mut usize) -> &mut u64
Expand description

Reinterpret a &mut usize as a &mut u32 (32-bit targets) or &mut u64 (64-bit targets).

This is a plain function, not a macro, on purpose: the conversion is only sound behind a real function-call boundary.