๐ Today's Drill
Backtracking Permutations
Build, recurse, undo.
Stored locally in this browser.rust ยท struct ยท easy
Struct Basic
Define a basic struct and instantiate it.
The whole snippet stays visible.
Type the code below. The editor is ready.
struct User {
username: String,
email: String,
sign_in_count: u64,
active: bool,
}
fn build_user(email: String, username: String) -> User {
User {
active: true,
username,
email,
sign_in_count: 1,
}
}
What the numbers mean
Accuracy counts keystrokes, not positions โ mistyping the same => five times costs five. Consistency measures how even your rhythm was; bursts separated by stalls score low even at a high speed. Weak tokens are the syntax you got wrong, and hesitation is the syntax you got right after a visible pause โ usually the more useful list, and invisible to any mistake-based report.
Nothing you type is uploaded. Read what each metric measures, or the order worth drilling Rust syntax in.