Nano
Nano
When I set a value in uniform, I want to check a program is using ```rust let current_program: i32 = gl.get_parameter_i32(glow::CURRENT_PROGRAM); let location_program: NativeProgram = location.program; assert_eq!(current_program, location_program); ``` But...
I write a deserialization using the `from` or `try_from` attribute because it saves a lot of code lines compared to manual implementation. Often deserialization comes from strings. Therefore, I implement...
In a relatively new version of Rust (it seems 1.59.0), you can use a destructuring assignment which allows you to write code like this: ```rust _ = String::new(); ``` while...
## 🐛 Bug description I ran the command: ``` cargo install wasm-pack ``` And it gives me an error during compilation: ``` error: failed to run custom build command for...
Impl #2853
The proposal to add a similar method from std [`map_while`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.map_while) for stream. This would be convenient to reduce this: ```rust stream.map(|x| u32::checked_div(16, x)) .take_while(|x| future::ready(x.is_some())) .map(|x| x.unwrap()) ``` to this:...
How about adding a similar method? https://docs.rs/futures/latest/futures/stream/trait.StreamExt.html#method.take_until This can be convenient for a stream cancellation.
It would be cool to have these methods ```rust impl { pub fn from_cow(c: Cow From {/***/} ``` Also, can I somehow find out the type of a `Yarn` value:...