Commit Graph

8 Commits (73dea88f7d7a9df8c275c0f21e755b152e64adf3)

Author SHA1 Message Date
Simon Bruder 73dea88f7d
Refactor osu beatmap
It now uses the builder pattern and has tests and some documentation.
2020-08-07 12:37:57 +02:00
Simon Bruder 0ad0d503a2
Remove U3 type for osu beatmap
It did not do any checking and looked weird.
What *is* the right way to ensure the value only has 3 bytes while still
allowing the user to pass a normal primitive or newtype wrapper around a
primitive (and not e.g. a [bool; 3])?
2020-07-08 23:55:52 +02:00
Simon Bruder 95f4a4c60c
Deduplicate bitflags/bitarray_to_byte 2020-07-08 23:55:04 +02:00
Simon Bruder 19eebdc345
Implement Deref for newtypes 2020-07-04 23:17:17 +02:00
Simon Bruder d0d33de51e
Store time as u32 2020-06-30 12:48:47 +02:00
Simon Bruder 56d36f2732
Avoid truncation
Error where truncation can occurr and prevent truncation in the future
by using `type::from()` (which checks for truncation) instead of `as
type` (which doesn’t).
2020-06-27 19:43:50 +02:00
Simon Bruder 60b74c7e97
Move join_display_values to utils 2020-06-26 21:10:51 +02:00
Simon Bruder 8319ee42d9
Initial commit 2020-06-22 20:39:20 +02:00