Comments (4)
Hi !
Currently, this is not possible. The code does not insert lifetime parameters in the struct definition (resulting in the error you see). You can use owned value (String
) without any issue though.
References could be supported with more code, but there are a few design questions to consider. I don't have much time to work on this now, but I'll be happy to review pull-requests.
from soa-derive.
Thank you.
from soa-derive.
Has this been fixed/patched since then?
from soa-derive.
No, this crate did not change much since 2018 =). My stance is still the same:
References could be supported with more code, but there are a few design questions to consider. I don't have much time to work on this now, but I'll be happy to review pull-requests.
from soa-derive.
Related Issues (20)
- performance of the slice iterator HOT 14
- Allow explicit name generation HOT 1
- Use one length and capacity variable for whole struct HOT 23
- Update versions of `syn` and `quote` HOT 3
- Provide FromIterator implementation HOT 3
- Use trait to link the origin struct to generated soa struct HOT 3
- Add access methods HOT 3
- Allow to nest structs of arrays HOT 9
- Nitpick: doc for generated vec-like methods have extra spaces HOT 1
- Does not support generics. HOT 6
- #[soa_attr] on field
- #[serde(skip)] cause struct of array containing different length of field HOT 4
- Const array SoA variant HOT 2
- Cannot find trait `SoAIter` in crate `soa_derive` HOT 3
- Sorting methods for Slice variant HOT 2
- Derive std::iter::Extend HOT 1
- Is it possible to avoid duplicate capacity and size fields? HOT 1
- How do you go from `MyTypeRef` to `MyType` ? HOT 6
- How to set #[pyclass] attribute for soa-derived struct? HOT 2
- cannot move out of type `CheeseVec`, which implements the `Drop` trait HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from soa-derive.