Raw pointers (*const T and *mut T) used to primarily support operations operating in units of T. In some cases, working with byte offsets is more convenient, and these new APIs avoid requiring callers to cast to *const u8/*mut u8 first.
For more cleaned API better to switch for that use. Since Rust v1.75.0
Raw pointers
(*const T and *mut T)
used to primarily support operations operating in units of T. In some cases, working with byte offsets is more convenient, and these new APIs avoid requiring callers to cast to*const u8/*mut u8
first.For more cleaned API better to switch for that use. Since Rust v1.75.0