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

Primitive encoder takes content by value #8

Merged
merged 4 commits into from
Jan 16, 2019
Merged

Conversation

partim
Copy link
Member

@partim partim commented Jan 16, 2019

This PR adjusts the #7 to have the encoding methods of PrimitiveContent to take self by reference but makes encode and encode_as move self to resulting Primitive. This way, you can move a primitively encoded value into a composite encoder if you want to.

@partim partim merged commit f5ab1e5 into master Jan 16, 2019
@partim partim deleted the move-to-primitive branch February 14, 2019 10:58
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.

None yet

1 participant