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? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unsafe_get_pixel
get_pixel_unchecked
Personally I think it's better to use .get_pixel_unchecked since there exist .get_unchecked() and .get_unchecked_mut for std slices.
.get_pixel_unchecked
.get_unchecked()
.get_unchecked_mut
Additionally, would .get_pixel_unchecked_mut be useful?
.get_pixel_unchecked_mut
The text was updated successfully, but these errors were encountered:
I notice that .get_pixel is not quite parallel with std's .get. The former returns T, the latter returns &T. But I saw this TODO comment:
.get_pixel
.get
T
&T
/// TODO: change this signature to &P fn get_pixel(&self, x: u32, y: u32) -> Self::Pixel;
Was there any progress in doing so?
Sorry, something went wrong.
No branches or pull requests
Personally I think it's better to use
.get_pixel_unchecked
since there exist.get_unchecked()
and.get_unchecked_mut
for std slices.Additionally, would
.get_pixel_unchecked_mut
be useful?The text was updated successfully, but these errors were encountered: