Focus mode

Rust Fundamentals

Expressions:If Let

Rust's if let expression lets you match an expression to a specified pattern. If let is different from the if expression, which is executed when a condition is met. If let terminates a loop and returns a value.

You can find detailed further information from Rust Official documentation:

https://doc.rust-lang.org/rust-by-example/flow_control/if_let.html 

For a detailed explanation of If Let expressions, you can watch this video as an additional resource:

 https://www.youtube.com/watch?v=LslG4GTQXfY 

https://www.youtube.com/watch?v=sWTu4Lm49Kw 

Resources:

https://web.mit.edu/rust-lang_v1.25/arch/amd64_ubuntu1404/share/doc/rust/html/book/first-edition/if-let.html 

https://linuxhint.com/use-if-let-expression-rust/ 

left-disk

Programs to Accelerate Your Progress in a Software Career

Join our 4-8 month intensive Patika+ bootcamps, start with the fundamentals and gain comprehensive knowledge to kickstart your software career!

right-cube

Comments

You need to enroll in the course to be able to comment!