Skip to content

Version 0.9.0

Compare
Choose a tag to compare
@Voultapher Voultapher released this 19 Jun 07:37
· 93 commits to main since this release

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 formerly from_fn
    • try_new formerly try_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.