diwic / reffers-rs

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

Not usable with unsized types? #11

Closed rljacobson closed 1 year ago

rljacobson commented 1 year ago

The reffers::*::Strong<T> type marks T as ?Sized, but T must also implement reffers::rc::Repr, an "implementation detail." Except Repr apparently requires T to be either str, [U], or Sized.

So this smart pointer only works with sized types except for str and [U]? Am I missing something?

diwic commented 1 year ago

If you're referring to dyn Trait types then you're correct. The reason was that there was no way to get hold of what I needed without using nightly features. Maybe that has changed in the last year or two; I haven't followed Rust std development recently.

rljacobson commented 1 year ago

Thank you for the information, @diwic. Thanks for sharing your software. I'll close the ticket.