Skip to content
New issue

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

Option copy overloads #251

Merged
merged 5 commits into from
Jun 7, 2023
Merged

Option copy overloads #251

merged 5 commits into from
Jun 7, 2023

Conversation

danakj
Copy link
Collaborator

@danakj danakj commented Jun 7, 2023

No description provided.

This came from slice_methods.inc (back when we were using raw_len as
an expression to get the length) but is now directly in SliceMut.
Everything except for unwrap methods, since if yuo want to access
the value in an rvalue, you can use as_value() or operator* and not
need to do a copy.
@danakj danakj added this to the stable-numerics milestone Jun 7, 2023
@danakj danakj merged commit 7552dae into chromium:main Jun 7, 2023
@danakj danakj deleted the option-copy branch June 7, 2023 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SliceMut::as_slice comment mentions obsolete "raw_len" Option<T>::foo needs const& overloads when T is Copy
1 participant