programming.dev
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Mac to Rust · 1 year ago

Behind the Scenes of Rust String Formatting: format_args!()

blog.m-ou.se

external-link
message-square
0
link
fedilink
28
external-link

Behind the Scenes of Rust String Formatting: format_args!()

blog.m-ou.se

Mac to Rust · 1 year ago
message-square
0
link
fedilink
The fmt::Arguments type is one of my favorite types in the Rust standard library. It’s not particularly amazing, but it is a great building block that is indirectly used in nearly every Rust program. This type, together with the format_args!() macro, is the power behind print!(), format!(), log::info!() and many more text formatting macros, both from the standard library and community crates. In this blog post, we learn how it works, how it is implemented today, and how that might change in the future.
alert-triangle
You must log in or register to comment.

Rust

rust

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

[email protected]

Credits
  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 58 users / day
  • 200 users / week
  • 413 users / month
  • 2.92K users / 6 months
  • 1.47K local subscribers
  • 6.9K subscribers
  • 995 Posts
  • 4.71K Comments
  • Modlog
  • mods:
  • snowe
  • Ategon
  • EdTheLegendary
  • kahnclusions
  • torcherist
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org