Skip to content
Snippets Groups Projects
Unverified Commit 38082690 authored by Jerome Humbert's avatar Jerome Humbert Committed by GitHub
Browse files

Take `impl Into<RepeatCount>` for easier usage (#78)

Change the signature of `Tween::with_repeat_count()` to take an `impl
Into<RepeatCount>` instead of a `RepeatCount` value, to make it easier
to configure the `Tween`.

Implement for `RepeatCount`:
- `From<u32>` for an actual count, yielding `RepeatCount::Finite(value)`
- `From<Duration>` for a duration "count", yielding
  `RepeatCount::For(value)`
parent 761e6a04
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment