1 unstable release
0.0.1 | Jul 29, 2024 |
---|
#11 in #soa
22 downloads per month
4KB
soars
Struct of Arrays (SoA) in Rust (rs).
Example
use soars::Soa;
#[derive(Soa)]
struct Foo {
a: u64,
b: bool,
}
This Generates a new struct SoaFoo
that is similar to:
struct SoaFoo {
a: Vec<u64>,
b: Vec<bool>
}
There are a number of attributes that can be applied to the struct or fields to control the generated behavior and implementation.
License
This crate is licensed under either of
at your option.
Contribution
Unless you explicitly note otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.