Releases: radekvit/pared
Releases · radekvit/pared
0.3.0
0.2.2
0.2.2
- Switch
TypeErasedArc
andTypeErasedRc
to useManuallyDrop
when converting the raw pointer into a concreteArc<T>
,Rc<T>
orWeak<T>
to avoid incorrect behavior in case any method we call panics. Previously, the temporary would be dropped even if it shouldn't have, causing potential UB (use after free). - Add
Prc::try_from_rc
,Prc::try_project
,Parc::try_from_arc
, andParc::try_project
. These are fallible versions of the same methods withouttry_
, where theFnOnce
that's passed to these functions returns anOption
. This allows for usingPrc
andParc
where the projected reference might be unavailable.