Hassan Abu-Jabir
Hassan Abu-Jabir
I think this is one of the most important, missing features of Rust. While this feature might seem simple it has some really great benefits like being able to circumvent...
@jplatte I get what you are saying, but i think new types should be exactly that. A way to simply create a type equivalent to another one with access to...
This kind of new type deriving would pretty much just be an abbreviation for transmute and thus raises the same safety concernes as transmute does. Unsafe shouldn't be usable in...
Hello, i am new to this and very interested. Maybe it would be possible to add a `Shared` variant to the enum which just stores an `Arc` this would have...
I don't understand? What do you mean with `0.3` it is not an int anyways. The idea is that `to_int_checked` forces you to think about rounding yourself for instance with...
Working against this weirdness is exactly the point. To make my implementation uniform i have to think about using `ceil`, `trunc`, `round` or `floor`. Its better to force a "correct"...
I guess returning an Option for some operations is inevitable. The `floor` and `ceil` could just return the nearest integer (saturating at integer bounds) maybe `round` too but `trunc` not...
Maybe providing something along the lines of `to_int_exact` would make sense. Then all other functions "just work" and give you the nearest int. With `to_int_exact` this would return an `Option`...
For everyone encountering this issue: I once experienced a similar problem with the sync client. If you use tokio driven libraries you are actually best off to use them with...
Because pretty much everything is uses `&mut self` you can just use `Arc`, i would recommend the [tokio Mutex](https://docs.rs/tokio/latest/tokio/sync/struct.Mutex.html). Internal state is mutated when making any networking request, reading from...