Release 3.2.0
·
3205 commits
to main
since this release
Property setter methds now allow non-ref value arguments. We now handle 3 different types of property value types of setters differently:
- For reference argument, we convert from
&Value(soTryFrom<&Value<'_>>is required). This was how we previously handle all types of arguments but now this is limited to reference argument. - For argument type with lifetimes, we convert from
Value(soTryFrom<Value<'_>>is required). - For all other argument types, we convert the passed value to
OwnedValuefirst and then pass it asValue(soTryFrom<Value<'static>>is required). This implies possible implicit allocation/cloning but what can we do. 🤷