duble-vec 1.0.0

Rust library for optimizing 2D vectors
Documentation
  • Coverage
  • 66.67%
    12 out of 18 items documented0 out of 13 items with examples
  • Size
  • Source code size: 6.79 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.02 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 37s Average build duration of successful builds.
  • all releases: 28s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • rudolfmuller/double-vec
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • rudolfmuller

duble-vec

Rust library for optimizing 2D vectors

WARNING: This library is primarily intended for our personal project. I just want to share it with you so you can test it and, if you like, give me some feedback (or even use it)

install: $ cargo add duble-vec. documentation on: https://docs.rs/duble-vec/

Example

use duble_vec::*;

fn main() {
    let mut vec: DubleVec<i32> = DubleVec::new(Size { w: 6, h: 5 });
    vec.push(5, Index { x: 1, y: 1 });
    if let Some(value) = vec.get(Index { x: 1, y: 1 }) {
        println!("Value: {}", value);
    } else {
        println!("No value at this index");
    }
    println!("Size: {}", vec.size());
    vec.print();
}