google / google/zerocopy

Support size-shrinking value and reference transmutes

Open
#2,701 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
2.6k
Forks
179
Avg merge
1d 19h
Merged PRs (30d)
29

Description

Support transmutations that allow shrinking the size of the value or referent.

This follows up on the work done in #1817.

## Progress

- [x] Support value transmutations (`transmute!`) that permit shrinking size
- #2581
- [ ] Support reference transmutations (`transmute_{ref,mut}!`) that permit shrinking size
- [ ] #2580
- [ ] #2487
- [ ] Support fallible value transmutations (`try_transmute!`) that permit shrinking size
- [ ] Support fallible reference transmutations (`try_transmute_{ref,mut}!`) that permit shrinking size

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.