Take the first step with trust - learn how trust manages memory
What is ownership
Rust contains an ownership system to manage memory At compile time, the ownership system checks a set of rules to ensure that the ownership feature allows your program to run without slowing down
To understand ownership, let's first look at Rust scope rules and mobile semantics
Scope rule
In Rust, like other languages, ...
Posted by almystersv on Thu, 09 Dec 2021 19:01:21 +0100
Rust language Bible 12 - strings and slices
Original link: https://course.rs/basic/string-slice.html Welcome to Rust programming college, the best Rust learning community in China
Official website: https://college.rsQQ group: 1009730433
character string
In other languages, string is often given sub questions, because it is too simple. For example, "hello, world" is almo ...
Posted by spxmgb on Tue, 07 Dec 2021 19:31:57 +0100
The Rust Programming Language - Chapter 19 advanced features - 19.1 unsafe Rust
19 advanced features
We will learn more advanced features in this chapter
19.1 unsafe Rust
So far, the code we have compiled, Rust, will enforce checks at compile time to ensure memory security. However, Rust also provides a mode, unsafe Rust. These codes are written in unsafe blocks. They are no different from conventional codes, but they c ...
Posted by bliss322 on Sat, 04 Dec 2021 23:07:41 +0100
Tick timer of Let's Go Rust series
prefaceIn actual project development, there are often functional development requirements for scheduled tasks. Scheduled tasks are mainly divided into two types,Execute a task at a fixed time, that is, TimerBased on a fixed time interval, a task is executed periodically, that is, TickerMany time-based scheduling frameworks are inseparable from ...
Posted by JayFM on Fri, 03 Dec 2021 11:19:41 +0100
Rust develops postgres extensions
prefaceRust language is a general system level programming language. It has no GC and is famous for ensuring memory security, concurrency security and high performance. It has been privately developed by Graydon Hoare since 2008 and sponsored by Mozilla in 2009. Version 0.1.0 was released for the first time in 2010 for the development of Servo ...
Posted by CapEsiouS on Tue, 30 Nov 2021 10:21:31 +0100
Struct of Rust: defining and instantiating structs
development environment
Windows 10Rust 1.56.1
VS Code 1.62.3
Project engineering
The last project trust demo will continue here
structural morphology
A structure is similar to a tuple. Like tuples, fragments of structures can be of different types. Unlike tuples, we will name each data segment so that we can clearly un ...
Posted by daveoliveruk on Mon, 29 Nov 2021 10:27:34 +0100
The Rust Programming Language - Chapter 16 fearless concurrency - 16.2 passing data between processes using messaging
16 fearless concurrent
Safe and efficient handling of concurrent programming is another major goal of Rust
Memory security and efficient programming have always been the goal of many languages. Rust uses ownership and type system to balance this
In this chapter, we will understand
1. How to create threads to run multi terminal code at the s ...
Posted by AbsolutelyFreeW on Sun, 28 Nov 2021 16:40:31 +0100
Rust programming language 6
title: Rust programming language (6)
date: 2021-11-26
updated: 2021-11-26
comments: true
toc: true
Execerpt: the package of rust, used by crite and module
tags:
Rust
categories:
programming
preface
People who have really written the project know that the code can't be handled by a file. The logic inside is very complex, so the projects have ...
Posted by Pascal P. on Fri, 26 Nov 2021 10:13:38 +0100
Rust Learning Records - > Questions about Crates.io
Preface
Recently, when I wrote a mall back-end demo in rust, I downloaded a lot of external dependency packages through crates.io due to the interaction with mysql and serialization. In the process, I encountered the problem of version change and different versions between mirror sites, as described below.
Problem Description and Reso ...
Posted by floR on Wed, 10 Nov 2021 19:57:13 +0100
[algorithm learning] sword finger Offer II 042. Number of recent requests (Java / C / C + + / Python / go / trust)
Thank you very much for reading this article~ Welcome[ 👍 [like][ ⭐ Collection][ 📝 [comments]~ It's not hard to give up, but it must be cool to insist~ I hope all of us can make a little progress every day~ This paper consists of The white hat of the second leader https://le-yi.blog.csdn.net/ Blog originality~
Sword finger Offer II ...
Posted by omegared on Tue, 02 Nov 2021 16:02:57 +0100