Kestrer
Kestrer
Futures now supports this functionality through the [select](https://docs.rs/futures/~0.3/futures/stream/fn.select.html) function.
For this use case, what would be the benefit in using this library at all? You are able to write: ```rust #[repr(u8)] pub enum Freqency { TwoHz = 0, OneHz,...
Hmm, ok. I don't think I want to support enums with holes, it feels out of scope, but I can definitely implement custom enum variant names.
I'm thinking you will just write out enum variants like in a regular Rust enum. The range will be set implicitly by the range of the values of the enum...
I'm not sure about the first one, since no starting value is explicitly specified - I might require `Variant0 = 0`. It will be a compile time error.
The trouble with allowing custom type reprs is that `bounded-integer` doesn't know their signedness and size. Signedness is used to determine whether `abs`, `checked_abs`, `Neg` and `checked_neg` should be generated,...
And I just encountered another problem - automatic `repr` detection does not work if the macro doesn't know the value of each range bound when it runs (this is the...
I think an `Error: From` bound is fine, given it's an established pattern. Users can trivially do `.map_err(|e| match e {})` (and with `!`, `.map_err(|e| e)`) to fix the `Infallible`...
@ug02fast Actually I just realized that I had both`vim-jsx-typescript`+`typescript-vim` _and_ `vim-jsx-pretty` installed which was causing a few errors. Removing `vim-jsx-pretty`, I get the same but without blue tags at all,...
As an alternative, we can instead insert: ```rust if false { yield unreachable!(); } ``` Like Sergio's solution it is able to produce a stream of any type, but while...