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

implemented ToString #17

Closed
wants to merge 2 commits into from
Closed

Conversation

hoodie
Copy link
Contributor

@hoodie hoodie commented Mar 31, 2016

Hey there, I implemented Yaml::to_string() and From<&Yaml> for String.
I know it's a bit of a duplication of YamlEmitter, but I found this more accessible.

cheers

@hoodie
Copy link
Contributor Author

hoodie commented Apr 11, 2016

Hi again, what is your opinion on this PR? It doesn't build on Rust 1.0.0 and 1.1.0, but it builds on stable. Perhaps you would consider changing the travis configuration?

@chyh1990
Copy link
Owner

er...maybe we should implement this in more efficient way with a string buffer, to avoid String allocations?

@hoodie
Copy link
Contributor Author

hoodie commented Apr 11, 2016

You probably refer to the Array and Hash cases, what would a string buffer be? write!() ?
I actually don't have that in here yet, but I can do that and come back you.
Though I assume that this is quite fast already.

@hoodie
Copy link
Contributor Author

hoodie commented May 7, 2016

What do you say?

@hoodie
Copy link
Contributor Author

hoodie commented Sep 17, 2016

no longer necessary, #32 is more important :D

@hoodie hoodie closed this Mar 8, 2017
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

2 participants