← RustChallenge.com

Coding · Facts & stats

Rust facts & stats

7 fact-checked facts about the Rust programming language, each with the reason behind it. 5 more are in today's round and join this page after it closes.

Play today's round

The basics

What is Rust's official build tool and package manager called?

AnswerCargo

Cargo builds Rust projects, runs tests and downloads dependencies.

Rust's unofficial crab mascot is named what?

AnswerFerris

Ferris the crab is the community mascot, and Rust fans call themselves Rustaceans.

Going deeper

In Rust, what does the exclamation mark in println! indicate?

AnswerIt is a macro, not a regular function

Names ending in ! like println! and vec! are macros that expand into code at compile time.

What is the part of the Rust compiler that enforces rules about references called?

AnswerThe borrow checker

The borrow checker makes sure references never outlive the data they point to.

Instead of null values, Rust usually represents a value that might be missing with which type?

AnswerOption

Option has two variants: Some(value) or None.

Expert level

Which Rust type is commonly returned by operations that can fail?

AnswerResult

Result has Ok(value) for success and Err(error) for failure.

In Rust, what are traits mainly used for?

AnswerDefining shared behavior that types can implement

A trait lists methods a type must provide, similar to interfaces in other languages.

Know these cold?Today's round is five questions like these, 20 seconds each. Your streak and level follow you to every arena.Play today's round