Veclite: A Vec alternative
⚓ Rust 📅 2025-07-11 👤 surdeus 👁️ 17Veclite
Veclite implements std::fmt::Display, allowing for formatting and readable text.
Install
Add this to your Cargo.toml:
[dependencies]
veclite = "0.2"
How to use
Veclite is normally used using the Vel alias:
use veclite::Vel;
fn main() {
let mut list = Vel::new;
list.add(1);
list.add(2);
list.add(3);
println!("List: {}", list)
}
You can also use the Veclite struct, which is more inconvenient:
use veclite::Veclite;
fn main() {
let mut list = Veclite::new;
list.add(1);
list.add(2);
list.add(3);
println!("List: {}", list)
}
You can suggest improvements or contribute at https://github.com/Pjdur/Veclite/contribute
5 posts - 3 participants
🏷️ rust_feed