by wejick · 3y ago · 0 comments
If you use a global allocator, when this happens is entirely non-deterministic. If you use a local iterator, at least you control when that happens, and have guarantees on the asymptotical behaviour.
Basically, the library just transforms over a statically assigned buffer.
In a lot of languages, this means you lose out on some language features, but I believe features like pattern matching are alloc free in rust.
Language features like pattern matching are not affected.This is about standard library features. You don’t get Vec or String without the alloc crate.