You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, some Ptr APIs require A: Reference where likely A: Aliasing would be sufficient. In particular, these APIs merely need the ability to read from their referents, and are compatible with owned pointers. In particular:
Ptr::as_ref (though this would require changing self to &self to avoid moving owned pointers)
Ptr::reborrow
Ptr::try_into_valid
Ptr::as_bytes
Ptr::try_cast_into / try_cast_into_no_leftover
The text was updated successfully, but these errors were encountered:
Currently, some
Ptr
APIs requireA: Reference
where likelyA: Aliasing
would be sufficient. In particular, these APIs merely need the ability to read from their referents, and are compatible with owned pointers. In particular:Ptr::as_ref
(though this would require changingself
to&self
to avoid moving owned pointers)Ptr::reborrow
Ptr::try_into_valid
Ptr::as_bytes
Ptr::try_cast_into
/try_cast_into_no_leftover
The text was updated successfully, but these errors were encountered: