Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat!: derive Copy on TuiWidgetEvent and TuiLoggerLevelOutput#55

Merged
gin66 merged 1 commit intogin66:masterfrom
joshka:enum-copy
Feb 4, 2024
Merged

feat!: derive Copy on TuiWidgetEvent and TuiLoggerLevelOutput#55
gin66 merged 1 commit intogin66:masterfrom
joshka:enum-copy

Conversation

@joshka
Copy link
Contributor

@joshka joshka commented Feb 4, 2024

These enums are small and simple enough to be Copy. This change
simplifies calling code to not have to use & when passing or
comparing these enums.

See https://doc.rust-lang.org/std/marker/trait.Copy.html#when-should-my-type-be-copy
for justification.

BREAKING CHANGE: TuiWidgetEvent::transition() method now takes a
TuiWidgetEvent by value instead of by reference.

These enums are small and simple enough to be `Copy`. This change
simplifies calling code to not have to use `&` when passing or
comparing these enums.

See https://doc.rust-lang.org/std/marker/trait.Copy.html#when-should-my-type-be-copy
for justification.

BREAKING CHANGE: `TuiWidgetEvent::transition()` method now takes a
`TuiWidgetEvent` by value instead of by reference.
@gin66 gin66 merged commit f4b4f9f into gin66:master Feb 4, 2024
@joshka joshka deleted the enum-copy branch April 1, 2024 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants