Arithmetic Operation Documentation

⚓ Rust    📅 2025-07-18    👤 surdeus    👁️ 3      

surdeus

We were discussing the finer points of some arithmetic operations in C++ and Rust today. We somewhat quickly found where C++ defines the behavior of << for example, but I could not actually find where Rust describes its behavior.

Am I just bad at navigating the reference? I expected it to be defined here: Operator expressions - The Rust Reference or perhaps linked in each impl Shl<T> for U.

1 post - 1 participant

Read full topic

🏷️ rust_feed