-
Notifications
You must be signed in to change notification settings - Fork 867
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
Derive clone for arrays #3184
Derive clone for arrays #3184
Conversation
arrow-array/src/raw_pointer.rs
Outdated
@@ -21,6 +21,7 @@ use std::ptr::NonNull; | |||
/// self-reference a [arrow_buffer::Buffer] from | |||
/// [arrow_data::ArrayData], as a pointer to the beginning of its | |||
/// contents. | |||
#[derive(Copy, Clone)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't make RawPtrBox any more unsafe than it already is, it is effectively just a pointer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be useful.
Benchmark runs are scheduled for baseline = 2460c7b and contender = 2c86895. 2c86895 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
Which issue does this PR close?
Closes #.
Rationale for this change
Being able to go from a reference to an owned value is often useful
What changes are included in this PR?
Are there any user-facing changes?