Rust control flow

Rust control flow

If statements

if statement else if else

For loops

While loops

Loop

loop break

Match

Like switch in C.