Rust Reference: Ownership, Error Handling, Cargo, Traits & Async Tokio
Rust concepts and patterns that took me a while to internalize.
Ownership in one page
let s1 = String::from("hello");
let s2 = s1; // MOVE — s1 is now invalid
let s3 = s2.clone(); // COPY — both valid (explicit, shows it costs something)
f...
releaserun.hashnode.dev2 min read