2 stable releases
new 1.0.1 | Feb 9, 2025 |
---|---|
1.0.0 | Feb 8, 2025 |
#1926 in Rust patterns
231 downloads per month
11KB
135 lines
collar
this crate provides collect_array
and makes it easy to collect to small stack allocated arrays
use collar::*;
let Some([ty, path, http]) = request.split(' ').collect_array_checked() else {
return;
};
lib.rs
:
provides collect_array
and try_from_fn
.
allowing easy vec-free collection to an array.
use collar::*;
let Some([ty, path, http]) = request.split(' ').collect_array_checked() else {
return;
};