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

Add non-owned range_de #463

Closed
maurolacy opened this issue Oct 1, 2021 · 2 comments
Closed

Add non-owned range_de #463

maurolacy opened this issue Oct 1, 2021 · 2 comments

Comments

@maurolacy
Copy link
Contributor

Use lifetimes / references to create a non-owned approach to key deserialization, if possible. Not sure if this is actually possible, as these keys come from storage, and are an ephemeral / referenced type (&[u8]) already.

serde has a Deserialize trait that works with references, as well as a DeserializeOwned one. Let's take a look at it to understand it better, and see if a similar approach can be applied here.

@ethanfrey
Copy link
Member

Update here?

Is this possible or not? If possible, is there any idea how to proceed?

No need to start on it, but it would be great to document an approach that could work. Or close it as "won't fix" (I kind of feel the second one, as I am unsure this is possible)

@maurolacy
Copy link
Contributor Author

Closing / archiving this, as we are not sure how to do it, or if it's possible at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants