Closed marioortizmanero closed 2 years ago
Note that this PR also includes changes from #76 in order to also fix lifetimes for RVec
and RHashMap
. It also adds new ones, such as using NonNull
in RVec
; *mut T
is invariant over T
, but NonNull<T>
is covariant over T
.
I take it this can be closed as well?
Closes #75
TODO:
RCow<'a
and fix it)Is it possible to implementProbably not possible.Deref
forRCow<B>
instead of for all ofRCow<&'a B>
,RCowStr<'a>
, andRCowSlice<'a, B>
? That way I can avoid duplicating other impls such asDisplay
, and conversions in e.g.,slice_like_impl_cmp_traits
will continue to work. I think this is impossible, though.B: ?Sized
too (?)