google / google/zerocopy

Add extension traits for conversions on `core::mem` types

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

Description

We often find ourselves re-implementing basic operations like `&T -> &ManuallyDrop` or `&T -> MaybeUninit`. So long as we're implementing these, we may as well make them available for use in our API. Extension traits is the first API design that comes to mind, but we could also consider bare functions.

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.