Test MDX File V11
Format:
🎬Code Demo: Copy and Cloning in Rust
Section titled “🎬Code Demo: Copy and Cloning in Rust”Shadowing Demo
Section titled “Shadowing Demo”Rust concept demo
Shadowing in Rust
Copy Clone Demo
Section titled “Copy Clone Demo”Rust concept demo
Copy and Clone in Rust
Borrow Demo
Section titled “Borrow Demo”Rust concept demo
Immutable & Mutable Borrows in Rust
LifetimeDemo
Section titled “LifetimeDemo”Rust concept demo
Lifetimes in Rust
SliceDemo
Section titled “SliceDemo”Rust concept demo
Array & String Slices in Rust
Error Handling Demo
Section titled “Error Handling Demo”Rust concept demo
Idiomatic Error Handling in Rust
String Types Demo
Section titled “String Types Demo”The C++ comparison is genuinely useful in this demo because almost every C++ programmer has the same model (std::string and string_view) and can transfer most of their intuition straight across — what’s new is the type-system enforcement.
Rust concept demo
`String` vs `&str` in Rust
Generics Demo
Section titled “Generics Demo”Rust concept demo
Generics & Trait Bounds in Rust
Traits Demo
Section titled “Traits Demo”Rust concept demo
Traits & `impl` in Rust
Move Semantics Demo
Section titled “Move Semantics Demo”Rust concept demo
Move Semantics in Rust
© 2026 Derek Molloy, Dublin City University. All rights reserved.