
总体介绍 。Rust 用于系统编程。系统编程用于操作系统、网络、文件系统、数据库、密码学等等。Rust 在并发、编译时内存安全、多线程应用程序和类型安全方面非常受欢迎。变量和可变性。默认情况下,变量在 Rust 中是不可变的。在 Rust 中有一个叫做阴影的概念。我们使用 println!() 宏进行打印。宏是函数的扩展版本。数据类型。Rust 中不允许自动类型转换。Rust 中可能使用下划线的大数字的数字分隔符。mut 关键字用于可变性。Rust 字符串分为字符串文字和字符串对象。Rust 中使用 Match 语句,就像 C/C++ 中的 switch case 语句一样。
参数通过值和引用传递给函数,就像在其他语言中一样。有一个概念叫做 Rust 所有权。Rust 中的移动操作类似于其他语言中的浅拷贝。我们有堆栈内存和堆内存。Rust trait 与面向对象编程语言中的接口概念非常相似。Rust 中有一个叫做 copy trait 的概念。
Rust 引用和借用。Observe Rust 没有垃圾收集的想法。在 Rust 中也没有像异常处理那样的东西。锈片。切片是指向内存块的指针。字符串切片是文字。Rust 结构类似于其他语言中的结构。Rust 有枚举和模块。Rust 集合包括 Vector、Hash Map 和 Hash Set。Rust 错误处理。Rust 中可恢复和不可恢复的错误。紧急宏和不可恢复的错误。泛型类型,泛型结构。
MP4 | Video: h264, 1280×720 | Audio: AAC, 44.1 KHz, 2 Ch
Genre: eLearning | Language: English + srt | Duration: 41 lectures (35h 59m) | Size: 34.6 GB
Rust Ownership, The move operation in Rust, Rust Trait , Copy Trait , Rust References and Borrowing, Slices ,Vector
What you’ll learn:
Students will learn the objectives of programming in general . Rust is an advanced modern programming language like Python and Golang etc. Worth learning.
The student is introduced to the basic concepts of programming . The basic building blocks of programming like variables, constants, functions are introduced.
The students are exposed to writing and running small sized programs to large project based application programs and even systems programming.
The student is encouraged to create mini projects like college projects and serious prototype projects needed in their professional fields.
Requirements
This course requires no prior in depth knowledge of programming in general. But a knowhow on programming is quite good. Experience in languages like C/C++ is a great advantage before learning Rust programming. Expertise in networking, concurrency etc is an added advantage for understanding Rust programming well.
Description
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.
Rust References and Borrowing. Observe Rust does not have the idea of Garbage collection. There is nothing like Exception handling also in Rust. Rust slices. A slice is a pointer to a block of memory. String slices are literals. Rust structure is similar to structures in other languages. Rust has Enums as well as Modules. Rust collections include Vector, Hash Map and Hash Set. Rust Error handling . Recoverable and Unrecoverable errors in Rust. Panic macro and Unrecoverable errors. Generic types, Generic structures.
Who this course is for
This course is for every aspiring programmer on earth. This course will be very useful for science graduates and engineering students of all branches. Especially those of you who are specializing in Computer Science and Engineering , this course will be greatly helpful.
原创文章,作者:steven,如若转载,请注明出处:https://rr3d.cn/20856.html