write! v format! | Rust Language
ฝัง
- เผยแพร่เมื่อ 5 มี.ค. 2024
- A quick video to discuss when to use write! macro and when to use format! macro in Rust.
"Utilities for formatting and printing Strings."
I also show an example implementing "write" and take a quick look at the eprintln! macro as well.
Rust documentation:
🟩 doc.rust-lang.org/std/fmt/
Here's a link to rust playground showing how to escape { }
🟩 gist.github.com/rust-play/aa2...
Linux Hosting - VPS server - Webdock
----------------------------------------------------------------
🟩 Webdock Linux Hosting : webdock.io/en?maff=wdaff--170
Nostr
---------
@RngWeb
findthatbit@iris.to
findthatbit.info/
redandgreen.co.uk/
#rustlang #rustprogramming #learningrust
Thanks, dude and keep going. I never knew this after studying Rust for a couple of YEARS!!
Glad I could help! I'm still leaning but just trying to make sure I investigate stuff as I come across it and make sure I could explain it. So much to learn!
Hard times...