soa-derive icon indicating copy to clipboard operation
soa-derive copied to clipboard

Array of Struct to Struct of Array helpers in Rust

Results 16 soa-derive issues
Sort by recently updated
recently updated
newest added

Implicit name generation is something that is very dangerous, and we should almost always use hygienic, correctly scoped macros. So instead of making `CheeseVec` for the following: ``` #[derive(StructOfArray)] struct...

I would like to implement `Extend

I wish to move out of the `CheeseVec`, which seems impossible because `CheeseVec` implements `Drop`: ```rust use soa_derive::StructOfArray; #[derive(StructOfArray)] pub struct Cheese { pub smell: f64, } fn main() {...

Derived vec doesn't implement `std::iter::Extend`, in order to create struct of array without reallocation, we need to do following code in current version of this crate. ```rust #[derive(StructOfArray)] Struct Foo...

As of now, If I have struct A, which is a field of struct B using `#[nested_soa]` in a different file, it will complain that `apply_permutation` is private.

Hi, apologies for not being able to infer this from the documentation and code, I am not very experienced with these topics. Also, sorry if I get any terms wrong,...