2 stable releases

new 1.0.1 Feb 9, 2025
1.0.0 Feb 8, 2025

#1926 in Rust patterns

Download history 231/week @ 2025-02-05

231 downloads per month

MIT license

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;
};

No runtime deps