Closed bluss closed 8 years ago
You can use a raw pointer cast (fat -> thin) to get the data pointer.
Example:
let x = 1; let p = &x as &Send; let data_pointer = p as *const Send as *const u8
I guess we just need to find the right letter of an RFC to know that this is on solid ground, but it should be.
Thanks!
@chris-morgan any chance of seeing a release that contains the fix from 2bb823b4da60316868a8adb8be573b6b5dd6f508? 0.2.2 on crates.io doesn't contain it it seems?
You can use a raw pointer cast (fat -> thin) to get the data pointer.
Example:
I guess we just need to find the right letter of an RFC to know that this is on solid ground, but it should be.