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

ความคิดเห็น • 3

  • @flyingbluelion
    @flyingbluelion 2 หลายเดือนก่อน +1

    Thanks, dude and keep going. I never knew this after studying Rust for a couple of YEARS!!

    • @learning_rust
      @learning_rust  2 หลายเดือนก่อน

      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!

  • @hlomphomota8055
    @hlomphomota8055 2 หลายเดือนก่อน

    Hard times...