Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better views implementation #12

Merged
merged 28 commits into from
Dec 21, 2023
Merged

Better views implementation #12

merged 28 commits into from
Dec 21, 2023

Conversation

imrn99
Copy link
Owner

@imrn99 imrn99 commented Dec 21, 2023

  • Replaced internal Vec of views by a custome structure, ViewData
  • updated all interfaces accordingly
  • Removed DataType enum; the Rust ownership system coupled with explicit mirroring will be enough
  • doc update

ViewRO / ViewRW / mirror functions that returned those
Layout is already used in the standard/core lib
this should eventually replace the vector inside of views
this can be used to easily handle mirrors & ensure the memory space
is deallocated only once
this is somewhat of a cheesy fix, but the pointer are not supposed to
be manipulated by the user anyway, so we assume it is safe
Since the feature-specific initialization is done in ViewData methods,
there's no need for separate implementation anymore at this level
it was, indeed, a fluke that it worked before
@imrn99 imrn99 merged commit b06724d into master Dec 21, 2023
4 checks passed
@imrn99 imrn99 deleted the better-views branch December 21, 2023 18:43
@imrn99 imrn99 restored the better-views branch December 22, 2023 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant