Version 0.9.0
This release has 2 core components:
-
Revamped dependent construction. You no longer have to choose which constructor type you want. Instead you can choose between:
new
formerlyfrom_fn
try_new
formerlytry_from_fn
try_new_or_recover
new
This is a breaking change, if you used from_fn
and or try_from_fn
all you need to do is delete the constructor type eg. #[from_fn]
in the macro invocation. If you used either from
or try_from
you can easily replace them by also removing the constructor type and using new
and try_new
respectively, eg: Ast::from(body) -> Ast::new(body, |body| body.into())
. See the documentation for details.
- A new function was added
fn into_owner(self) -> $Owner
which lets you efficiently recover the owner.