diwic / reffers-rs

Rust wrappers around references, boxes and Arcs.
68 stars 3 forks source link

Add optional unsize support #10

Closed jrmuizel closed 1 year ago

jrmuizel commented 2 years ago

Use the unsize crate to implement stable coercion to unsized types. See https://github.com/Manishearth/triomphe/pull/19

diwic commented 2 years ago

Hi, I had a look and this seems quite interesting! I'm sure whether you would like to work on this and submit a PR, or whether you just want to suggest the feature?

Is there some intro/examples of this crate somewhere? I'm asking myself questions like "Okay, so normally you'll do Box<u32> as Box<dyn Debug>, but with this crate, do you still use as or is it something else?

jrmuizel commented 2 years ago

I ended up working around the need for this locally. I plan on adding support for it to https://github.com/fitzgen/bacon-rajan-cc at some point and after that I might put up a PR here.

diwic commented 1 year ago

Closing due to inactivity.