This is for 0.3.0: The constructors I'd defined at the start of this project are too generic and simultaneously straight-jacket-y. There's no need for them to return Result, as everything has reasonable defaults.
So, let's make the constructor interface better:
Give Allower and Threadsafe a ::new() function.
Specialize the Builder pattern to GCRA.
Implement From for various conversions.
The result is a much nicer-looking experience. Witness the test code, for example.
This is for 0.3.0: The constructors I'd defined at the start of this project are too generic and simultaneously straight-jacket-y. There's no need for them to return
Result
, as everything has reasonable defaults.So, let's make the constructor interface better:
Allower
andThreadsafe
a::new()
function.GCRA
.From
for various conversions.The result is a much nicer-looking experience. Witness the test code, for example.