pub mod mutex; pub mod serialize; pub use mutex::AsyncMutex; pub use serialize::unserialize; pub fn ref_offset(r: &T, off: isize) -> &T { let ref_ptr: *const T = r; unsafe { return &*ref_ptr.offset(off); } } pub fn ref_raw_offset(r: &T, off: isize) -> &T { let ref_ptr: *const T = r; unsafe { return &*ref_ptr.cast::().offset(off).cast::(); } }