Skip to content

Soa<T> doesn't support Clone when T: Clone. #25

Description

@PPakalns

Soa array can not be cloned when data stored inside can be.

https://docs.rs/soa-rs/latest/src/soa_rs/soa.rs.html#685-708

If necessary, maybe Soa can implement Clone if all fields implement Clone.

This limitation makes Soa array hard to use. I would prefer slower operation that works so trait can be auto derived. If someone requires fast version, this could be added under fast_clone() or something like that, if that is the reason for the current limitation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions