soars

Crates.iosoars
lib.rssoars
version0.0.1
sourcesrc
created_at2024-07-29 23:21:13.790429
updated_at2024-07-29 23:21:13.790429
descriptionStruct of Array for Rust
homepage
repositoryhttps://github.com/kbknapp/soars
max_upload_size
id1319270
size3,540
Kevin K. (kbknapp)

documentation

https://docs.rs/soars/

README

soars

Rust Version crates.io Documentation Dependency Status

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.

Commit count: 0

cargo fmt