We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
https://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.offset
The implementation looks like:
pub unsafe fn offset(self, count: isize) -> *const T where T: Sized
But rustdoc only shows:
unsafe fn offset(self, count: isize) -> *const T
I tried to reproduce this with a struct type, but rustdoc seemed to do the right thing for this case.
pub struct Ptr<T: ?Sized>(*const T); impl<T: ?Sized> Ptr<T> { pub fn offset(self, count: isize) -> Ptr<T> where T: Sized { unimplemented!() } }
The text was updated successfully, but these errors were encountered:
I believe this is a duplicate of #24183.
Sorry, something went wrong.
Indeed, thank you.
No branches or pull requests
https://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.offset
The implementation looks like:
But rustdoc only shows:
I tried to reproduce this with a struct type, but rustdoc seemed to do the right thing for this case.
The text was updated successfully, but these errors were encountered: