Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[proposal] add 'notify' to '#[var]' #946

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

Commits on Nov 7, 2024

  1. Configuration menu
    Copy the full SHA
    0e9878b View commit details
    Browse the repository at this point in the history
  2. add new option 'notify=callback_fn' to the #[var] attribute

    it can only be used in conjunction with an autogenerated setter.
    the callback_fn is a 'fn(&[mut ]self) { }', which will be called whenever the backing value of the var changes.
    0x53A committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    f8fbd6d View commit details
    Browse the repository at this point in the history
  3. (try to) fix setter

    0x53A committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    d72e5e2 View commit details
    Browse the repository at this point in the history
  4. fix test

    0x53A committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    8b8130c View commit details
    Browse the repository at this point in the history
  5. fix clippy

    0x53A committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    1b0a29f View commit details
    Browse the repository at this point in the history
  6. cargo fmt

    0x53A committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    d22cfeb View commit details
    Browse the repository at this point in the history
  7. itest: class.free();

    0x53A committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    e1118aa View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2024

  1. #[var]: add 'set_ex'

    0x53A committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    3c11f73 View commit details
    Browse the repository at this point in the history