8 releases

Uses old Rust 2015

0.2.1 Aug 19, 2018
0.2.0 Jun 14, 2018
0.1.5 Feb 23, 2018
0.1.4 Jan 31, 2018
0.1.0 Aug 17, 2017

#2204 in Rust patterns

Download history 21/week @ 2024-07-20 48/week @ 2024-07-27 34/week @ 2024-08-03 33/week @ 2024-08-10 22/week @ 2024-08-17 25/week @ 2024-08-24 23/week @ 2024-08-31 22/week @ 2024-09-07 20/week @ 2024-09-14 55/week @ 2024-09-21 72/week @ 2024-09-28 63/week @ 2024-10-05 70/week @ 2024-10-12 87/week @ 2024-10-19 42/week @ 2024-10-26 32/week @ 2024-11-02

232 downloads per month
Used in 11 crates (6 directly)

MIT/Apache

50KB
1.5K SLoC

vec2

vector 2 functions

extern crate vec2;

fn main() {
    let a = [1, 1];
    let b = [1, 1];
    let mut out = vec2::new(0, 0);

    vec2::add(&mut out, &a, &b);

    assert_eq!(out, [2, 2]);
}

Dependencies

~160KB