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 a way to create U32/U16 string from number #19

Closed
playXE opened this issue May 16, 2021 · 1 comment
Closed

Add a way to create U32/U16 string from number #19

playXE opened this issue May 16, 2021 · 1 comment

Comments

@playXE
Copy link

playXE commented May 16, 2021

I'm using widestring to implement R7RS/R6RS Scheme VM and to convert number to string I have first to use to_string that creates String and after this I use U32String::from_str which does 2 heap allocations.

@starkat99 starkat99 added this to To do in 1.0 Roadmap Sep 12, 2021
1.0 Roadmap automation moved this from To do to Done Oct 12, 2021
@starkat99
Copy link
Owner

Added std::fmt::Write trait implementation for UString. This means you'll be able to do write!(ustr, "{}", 1234) and avoid the heap allocations, or for any other string formatting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
1.0 Roadmap
  
Done
Development

No branches or pull requests

2 participants