A lot of new features have been added to the `#[cgp_getter]` macro! For the basic use cases, you can now define getter methods that return &str or Option<&T>, and the macro will generate getter implementations that read from String or Option<T> fields. github.com/contextgener...
Post
github.comRefactoring and Improvements on `#[cgp_getter]` by soareschen · Pull Request #81 · contextgeneric/cgpSummary
This PR brings several quality of life improvements on the proc macros #[cgp_getter] and #[cgp_auto_getter], allowing them to support more general getter interfaces to be defined.
Specializ...
There are also many other advanced improvements, such as allowing PhantomData tags and generic implementation of field accessors using AsRef. The PR covers high level overview of all changes. For detailed walk through, stay tuned for more blog posts and updates on the book.
0 reposts0 likes
No replies yet.