The same logic is used by Rust to operate on actual locks, but don't worry: it doesn't mean that Rust is deadlock free language. One of the common misconceptions about Rust is that apps written in Rust are fast because they are written in Rust. Moreover, picking Rust may cause a let-down in expectations about performance - I've seen people writing their apps in both Rust and i.e.. C# and noticing that their C# apps were actually faster.