Repository navigation
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:
newformerlyfrom_fntry_newformerlytry_from_fntry_new_or_recovernew
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) -> $Ownerwhich lets you efficiently recover the owner.