8 releases

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

#7 in #vec

Download history 9/week @ 2018-08-24 6/week @ 2018-08-31 18/week @ 2018-09-07 5/week @ 2018-09-14 4/week @ 2018-09-21 26/week @ 2018-09-28 18/week @ 2018-10-05 1/week @ 2018-10-12 80/week @ 2018-10-19 2/week @ 2018-10-26 18/week @ 2018-11-02 42/week @ 2018-11-09 17/week @ 2018-11-16

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

MIT/Apache

49KB
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

~142KB