3 ms·
It's pretty nice that the `Result<>` and `?` pattern can be used in no-std Rust, without heap allocation.
by bacon_waffle 3y ago
It's pretty nice that the `Result<>` and `?` pattern can be used in no-std Rust, without heap allocation.
- richardwhiuk 3y agoThis could be written without heap allocation.
- bacon_waffle 3y agoMaybe so; I don't doubt you're correct, but offhand I can't think of how to do it. If you can see a solution that doesn't require boxing, that could make an interesting blog post, or PR to this crate!