duble-vec 1.1.0

Rust library for optimizing 2D vectors
Documentation
  • Coverage
  • 58.82%
    10 out of 17 items documented0 out of 12 items with examples
  • Size
  • Source code size: 8.86 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.08 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 19s 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(Vec2 { x: 6, y: 5 }, 0);
    vec.assign(5, Vec2 { x: 1, y: 1 });
    if let Some(value) = vec.access(Index { x: 1, y: 1 }) {
        println!("Value: {}", value);
    } else {
        println!("No value at this index");
    }
    println!("Size: {}", vec.size());
    println!("{}", vec;);
}