Skip to content

Release 3.2.0

Choose a tag to compare

@zeenix zeenix released this 11 May 07:59
· 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 (so TryFrom<&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 (so TryFrom<Value<'_>> is required).
  • For all other argument types, we convert the passed value to OwnedValue first and then pass it as Value (so TryFrom<Value<'static>> is required). This implies possible implicit allocation/cloning but what can we do. 🤷