Detailed Explanation and Examples of Common Types in the Rust Standard Library

This article will help you systematically master the most commonly used core types in the Rust standard library. Including: Box, Rc, Vec, HashMap, various string types, and time management. 🌈 Coverage Smart Pointer: Box Reference Counting: Rc Dynamic Array: Vec Key-Value Storage: HashMap String Family: String, &str, OsString, CString, etc. Time and Timing: SystemTime, Instant, … Read more

C Language Data Structures: Complete Implementation of a Handwritten HashMap (Reusable + High Performance)

C Language Data Structures: Complete Implementation of a Handwritten HashMap (Reusable + High Performance)

Understanding HashMap in One Image The structure implemented using an array + linked list (chaining method) is shown below:Key Points Recap: HashMap uses an array (buckets), where each bucket stores a conflict linked list (or other structures). The hash function maps the key to a hash value, and then the modulus operation is used to … Read more

Building Stock Market Engine From Scratch in Rust

Building Stock Market Engine From Scratch in Rust

This article is translated from Medium Original: Building Stock Market Engine from scratch in Rust https://github.com/Harshil-Jani/stock_engine_rs Medium This article is relatively basic, but it is very helpful for beginners to understand a simple trading system prototype. From the perspective of the exchange matching engine, the main structure is shown in the figure below: The four … Read more

Implementing a HashMap in C Language

Implementing a HashMap in C Language

In the world of data structures, a HashMap is an efficient tool for storing and retrieving data. It stores data in the form of key-value pairs, allowing for insertions, deletions, and lookups to be performed in average constant time complexity. Today, we will implement a simple HashMap using the C programming language. 1. Introduction to … Read more