const fn get_id_offset(
header_size: usize,
core_align: usize,
scheduler_size: usize,
id_align: usize,
) -> usize
Expand description
Compute the offset of the Id
field in Cell<T, S>
using the
#[repr(C)]
algorithm.
Pseudo-code for the #[repr(C)]
algorithm can be found here:
https://doc.rust-lang.org/reference/type-layout.html#reprc-structs