Implement AddAssign
and friends for Signal<T>
where T: Copy
#384
Labels
A-ergonomics
Area: API ergonomics
A-reactivity
Area: reactivity and state handling
C-enhancement
Category: new feature or improvement to existing feature
D-easy
Difficulty: easy
good first issue
Good for newcomers
This makes it more ergonomic for simple cases where we want to increment/decrement a
Signal
.e.g. instead of writing this:
we can write this:
This should only be implemented for types where
T: Copy
because we don't want to implicitly clone values behind the scenes.The text was updated successfully, but these errors were encountered: