Can you actually live in a rusty box? We might need something outside it! Somewhere less safe "more" directory: Calling a function from C (getpid) If you can call a C function, you're on the outside! Can get to the outside of Python, etc. this way too This is useful for mixed code bases Or C libraries without a rust wrapper What if we want to stay in rust world? unsafe.rs Can we change y using the pointer to x? Sure! Rust can totally be used to make a good test puzzle Finally: An asm directive! Like gcc My example uses Intel syntax Rust does that by default I didn't go figure out how to change it Apparently other architectures are AT&T in rust by default Back to how to use Rust "normally" mutability: Not the default anywhere new/mod_loop.rs You can have a loop with a mutable cursor new/pass_methods.rs You can pass a mutable reference to a function It'll change the original, as expected usize: Pointer-sized, like size_t Using dynamic memory and references: We can make a linked list