Crates.io | soars |
lib.rs | soars |
version | 0.0.1 |
source | src |
created_at | 2024-07-29 23:21:13.790429 |
updated_at | 2024-07-29 23:21:13.790429 |
description | Struct of Array for Rust |
homepage | |
repository | https://github.com/kbknapp/soars |
max_upload_size | |
id | 1319270 |
size | 3,540 |
soars
Struct of Arrays (SoA) in Rust (rs).
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.
This crate is licensed under either of
at your option.
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.