-
Notifications
You must be signed in to change notification settings - Fork 10
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
Support streaming / writers #5
Comments
Can you give me an example of what you mean by this? That is, can you write some rust code explaining your use case? |
Sure, I'm implementing something right now. let mut out_buf = String::new();
write!(out_buf, "{}", Caser::ToSnake("CamelCase")) So instead of calling Additionally, looking through the code, it might be useful to have the |
I'm still not totally following exactly the request, but I am welcome to make changes to decrease the number or allocations needed to do the conversion. Since you are looking at/implementing something, let me know what you think can be done so I can better understand what you are going for. |
Right now the API of You have something similar internally with the |
I've just formally published version 0.5.0 version of this crate, which reflects the current state of the master branch of this repository. Check these most recent docs: https://docs.rs/convert_case/0.5.0/convert_case/index.html
|
It would be great to expose a
write!
compatible form of convert case in case an existing buffer is already provided.The text was updated successfully, but these errors were encountered: