Fundamentals Highlights Summary
Every highlight bullet from the 11 pages in this section, gathered on one page and grouped by the page it came from.
Busque em todas as páginas da documentação
Every highlight bullet from the 11 pages in this section, gathered on one page and grouped by the page it came from.
mut exists so the borrow checker has a fixed point to reason aboutmatch move failure handling into the type system, at compile timemut when you need to change a valuemut mutates the binding, not deep interior data behind shared references[i32; 4] differs from [i32; 3].0, .1, or destructuring{ } are expressions - the last line without ; is the value() (unit)for loops iterate via IntoIterator - prefer them over manual index loopsloop can return a value with break exprbreak 'outer from nested loopsCopy types, invalidating the source binding& and &mut uses data without taking ownership&str point into UTF-8 data owned elsewhere.get() to avoid panics{} uses Display for user-facing output; {:?} uses Debug for developersDisplay for pretty printing; derive Debug for inspectionformat! builds String without printing to stdoutRevisado por Chris St. John·Última atualização: 19 de jul. de 2026