Skip to content

Rename CSliceRefMut to CVecRefMut to better represent its semantics and make them truly Vec-like - #7

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_969802037
Open

Rename CSliceRefMut to CVecRefMut to better represent its semantics and make them truly Vec-like#7
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_969802037

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Aug 24, 2026

Copy link
Copy Markdown

Rename CSliceRefMut to CVecRefMut to better represent its semantics and make them truly Vec-like

Currently, CSliceRefMut is named after an &mut [T], but behaves like a &mut Vec. This change renames the type and renames the functions to be truly Vec-like. To still support CSliceRefMut, we now use &mut [T], which can be created from a CSlicePtr.

@copybara-service
copybara-service Bot force-pushed the test_969802037 branch 4 times, most recently from f6dfb20 to 15394ae Compare August 24, 2026 14:00
@copybara-service copybara-service Bot changed the title No public description Support generic std::alloc::Allocator in safer_cffi CSlicePtr and CSliceRefMut Aug 24, 2026
@copybara-service
copybara-service Bot force-pushed the test_969802037 branch 2 times, most recently from 989386d to 186cfe9 Compare August 24, 2026 17:05
@copybara-service copybara-service Bot changed the title Support generic std::alloc::Allocator in safer_cffi CSlicePtr and CSliceRefMut No public description Aug 24, 2026
@copybara-service copybara-service Bot changed the title No public description Introduce CVecRefMut and accessor methods, use it in giflib, remove CSliceRefMut and replace it with &mut [T] Aug 25, 2026
@copybara-service copybara-service Bot changed the title Introduce CVecRefMut and accessor methods, use it in giflib, remove CSliceRefMut and replace it with &mut [T] Rename CSliceRefMut to CVecRefMut to better represent its semantics and make them truly Vec-like Aug 26, 2026
…nd make them truly Vec-like

Currently, CSliceRefMut is named after an &mut [T], but behaves like a &mut Vec<T>. This change renames the type and renames the functions to be truly Vec-like. To still support CSliceRefMut, we now use &mut [T], which can be created from a CSlicePtr.

PiperOrigin-RevId: 969802037
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.

1 participant