General Introduction . Rust is for Systems programming. Systems programming is used Operating Systems, Networking, File systems, Databases , Cryptography and much more. Rust is very popular with Concurrency, memory safety at compile time, and multithreaded applications and type safety. Variables and mutability. By default variables are immutable in Rust. There is a concept called shadowing in Rust. We use println!() macro for printing. Macros are an extended version of functions. Data types. Automatic type casting is not allowed in Rust. Number separator for large numbers using underscores possible in Rust. The mut keyword is used for mutability. Rust strings are divided into string literals and string objects. Match statement is used in Rust like the switch case statement in C/C++. For returning values from functions we can use a single arrow > like this to indicate a return type.
Parameters are passed to functions by value as well as by Reference as in other languages. There is a concept called Rust Ownership. The move operation in Rust is similar to a shallow copy in other languages. We have the stack memory as well as the Heap memory. Rust trait is very much similar to the concept of interfaces in Object oriented programming languages. There is a concept called copy trait in Rust.
Specification: Rust Programming Language : The Complete Reference.
|
User Reviews
Be the first to review “Rust Programming Language : The Complete Reference.” Cancel reply
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Price | $14.99 |
---|---|
Provider | |
Duration | 36 hours |
Year | 2021 |
Level | All |
Language | English ... |
Certificate | Yes |
Quizzes | No |
$19.99 $14.99
There are no reviews yet.