Collusion with Rust · parsing OFF files

OFF file is a plain text file, which can be used to record three-dimensional (or higher dimensional) polyhedron information. Its basic format isOFF Number of points, number of faces, number of sides Point table Surface tablefor exampleOFF 4 4 6 0 0 0 1 0 0 0 1 0 0 0 1 3 0 1 2 3 0 1 3 3 1 2 3 3 UTF-8...

Posted by tharagleb on Thu, 14 Apr 2022 18:35:26 +0930

Several concepts related to Rust concurrency security

introductionThis article introduces several concepts related to Rust concurrency security: the relationship between Send, Sync, Arc, Mutex, RwLock, etc. This is the first of them, which mainly introduces Send and Sync.Rust's concept of ownershipBefore introducing several concepts related to conUTF-8...

Posted by phpstuck on Wed, 20 Jul 2022 09:54:39 +0930

Static lifecycle promotion of temporary references

[Rust official forum post sorting] series: https://zjp-cn.github.io/rust-note/forum/static-promotion.html static promotion Static lifecycle promotion of temporary references stay RFC 1414: rvalue static promotion The static life cycle promotion function of the right value is implemented in, thaUTF-8...

Posted by dmikester1 on Sun, 24 Jul 2022 04:51:14 +0930

rust programming - general programming concepts (chapter 3.1)

Table of contents 1. Variables and changeability (modifiability) This chapter introduces some common concepts in programming languages ‚Äč‚Äčthat also exist in rust. For example: variables, primitive types, functions, annotations, control flow. These are the cornerstones of the Rust language. Like UTF-8...

Posted by digibrain on Mon, 21 Nov 2022 09:32:30 +1030