Mode:
Duration:
1
2
3
4
5
6
7
fn main() {
let mut s = String::from("Hello");
s.push_str(", World!");
println!("{}", s);
let slice = &s[0..5];
println!("Slice: {}", slice);
}Coding works best on desktop or with an external keyboard.
fn main() {
let mut s = String::from("Hello");
s.push_str(", World!");
println!("{}", s);
let slice = &s[0..5];
println!("Slice: {}", slice);
}Coding works best on desktop or with an external keyboard.
Demonstrates basic string operations and slicing.
fn main() {
let mut s = String::from("Hello");
s.push_str(", World!");
println!("{}", s);
let slice = &s[0..5];
println!("Slice: {}", slice);
}A modern, memory-safe, high-performance systems programming language focused on safety, concurrency, and zero-cost abstractions, designed to replace C/C++ in critical software.
Origin & Creator
Created by Graydon Hoare at Mozilla Research, first public release in 2010, and stable 1.0 released in 2015. Originated as a personal project, later backed by Mozilla. Evolved through Rust 2015, 2018, and 2021 editions, adding async/await, improved ergonomics, better tooling, Cargo, and a richer standard library.
Industrial Note
Highly adopted in cloud infrastructure, operating system components, cryptography, blockchain systems, safety-critical systems, and WebAssembly. Used by Microsoft, Amazon, Google, Cloudflare, and Meta for secure and high-performance services.