#slice #iterator #no-alloc

no-std vecxe

Utility functions for vec

1 unstable release

Uses new Rust 2024

0.1.0 Aug 17, 2025

#426 in No standard library

MIT license

6KB
122 lines

Vecxe

Utility functions for vec.

Installation:

cargo add vecxe

OR

[dependencies]
vecxe = "0.1.0"

lib.rs:

Vecxe - Utility functions for vec

A high-performance crate extending Rust's Vec<T> with iterator-like operations, zero-cost abstractions, and specialized vector operations.

Example

use vecxe::WindowedExt;

let v = vec![10, 20, 30, 40, 50, 60, 70];
let mut windows = v.sliding_windows_by(3, 2);

assert_eq!(windows.next(), Some([10, 20, 30].as_slice()));
assert_eq!(windows.next(), Some([30, 40, 50].as_slice()));
assert_eq!(windows.next(), Some([50, 60, 70].as_slice()));
assert_eq!(windows.next(), None);

No runtime deps

Features