01 2021 档案
摘要:An index is any data structure that takes the value of one or more fields and finds the records with that value quickly. Basics Indexes can be "dense"
阅读全文
摘要:In Rust, generics is a tool for establishing abstract stand ins for concrete types or other properties. When we're writing code, we can express the be
阅读全文
摘要:Reference and Borrowing In Rust, we use sign to refer a variable, so as in C++. Reference can be used as a constant parameter passed to functions, whi
阅读全文
摘要:Error handling requires you to acknowledge the possibility of an error and take some action before your code crashes. This requirement makes your prog
阅读全文
摘要:Storing Lists of Values with Vectors Vector The first collection type we'll look at is , as known as a Vector . Vector allows you to store more than o
阅读全文
摘要:Packages and Crates A crate is a binary or library. The crate root is a source file that the Rust Compiler starts from and makes up the root module of
阅读全文
摘要:自动控制原理 1. 自动控制的一般概念 反馈系统的基本组成 测量元件 给定元件 比较元件 放大元件 执行元件 校正元件 自动控制系统的基本控制方式 反馈控制方式 无论什么原因使被控量偏离期望值而出现偏差时,必定会产生一个相应的控制作用去降低或消除这个偏差。 开环控制方式 特点是控制装置与被控对象之间
阅读全文
摘要:Defining and Instantiating Structs Rust allows us to use structs to organize a group of related data. We use such syntax to define a struct: To instan
阅读全文