dignifiedquire / dignifiedquire/pin-cell

Missing CoerceUnsized APIs

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
Rust
Stars
14
Forks
5
PR merge metrics
No merged PRs in 30d

Description

This crate is supposed to mirror the API of `RefCell`, but some APIs in std are missing. One is the `CoercedUnsized` implementations for the reference types here, which allow the user to coerce them to trait objects.

`CoerceUnsized` is a nightly only API. This crate is nightly only already, but the features it currently uses - `pin` and `arbitrary_self_types` - are intended to be stabilized soon. For this reason, I'd prefer for the `CoerceUnsized` APIs to be under a separate "unstable" feature flag, so that this crate can run on stable Rust sooner than `CoerceUnsized` will be stabilized.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.