[
https://issues.apache.org/jira/browse/ARROW-3649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17660672#comment-17660672
]
Rok Mihevc commented on ARROW-3649:
-----------------------------------
This issue has been migrated to [issue
#19956|https://github.com/apache/arrow/issues/19956] on GitHub. Please see the
[migration documentation|https://github.com/apache/arrow/issues/14542] for
further details.
> [Rust] Refactor MutableBuffer's resize
> --------------------------------------
>
> Key: ARROW-3649
> URL: https://issues.apache.org/jira/browse/ARROW-3649
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Rust
> Reporter: Chao Sun
> Assignee: Chao Sun
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.12.0
>
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> Currently `MutableBuffer#resize` adjust the buffer's capacity. This is
> slightly confusing, and is not conforming with Rust's as
> [vector|https://doc.rust-lang.org/std/vec/struct.Vec.html#method.resize], as
> well as C++'s buffer impl.
> This proposes to rename the `resize` to `reserve`, and modify the current
> `set_len` to `resize`. We'll also allow `resize` to shrink the buffer so as
> to free up unnecessary space.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)