Closed
Description
These functions take a reference to the raw pointer you're trying to use and returns a slice with a lifetime based on the lifetime of your raw pointer. This behavior is not only extremely noisy, but leads to a mess of nasty transmutes or one-off variables when the raw pointer in question is calculated by i.e .offset().
A better approach might be letting the lifetime be inferred or letting the caller explicitly specify it.
Metadata
Metadata
Assignees
Labels
No labels