#vector #macro #transform #type #user-defined #structs #proc-macro

macro bin vecn

A procedural macro that transforms user-defined structs into general vector types

6 releases

0.2.1 Jun 15, 2021
0.2.0 Apr 30, 2021
0.1.3 Apr 29, 2021

#1645 in Math

MIT license

63KB
1.5K SLoC

Vecn

Provides the #[vector] macro, which transforms user-defined structs into general vector types by conditionally implementing appropriate traits and methods for them.

Crates.io Docs.rs MIT licensed Build Status

Usage

Add this to your Cargo.toml:

[dependencies]
vecn = "0.1"

And see docs for help information on how to use this crate.

License

vecn is distributed under the terms of the MIT license.

Dependencies

~1.5MB
~38K SLoC