Rust for Beginners: Going Beyond "Hello, World!" (Formatting & Debugging Basics)

posted Originally published at dev.to 1 min read

Most Rust tutorials start and end with:

fn main() {
    println!("Hello, World!");
}

But Rust has much more to offer when it comes to printing, debugging, and formatting output.

In this short video tutorial, you’ll learn:
println!, print!, eprintln!, eprint!
Debug & pretty debug ({:?} / {:#?})
Clean, user-facing output with Display
How to implement custom formatting for your own types

Watch the tutorial here: https://youtu.be/2kXKcAICfYQ
My Rust portfolio: https://vinecksie.super.site/

1 Comment

0 votes

More Posts

TypeScript Complexity Has Finally Reached the Point of Total Absurdity

Karol Modelskiverified - Apr 23

Your Tech Stack Isn’t Your Ceiling. Your Story Is

Karol Modelskiverified - Apr 9

I’m a Senior Dev and I’ve Forgotten How to Think Without a Prompt

Karol Modelskiverified - Mar 19

Beyond the 98.6°F Myth: Defining Personal Baselines in Health Management

Huifer - Feb 2

Tuesday Coding Tip 02 - Template with type-specific API

Jakub Neruda - Mar 10
chevron_left

Related Jobs

View all jobs →

Commenters (This Week)

1 comment
1 comment
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!