Processing a considerable number of large XML files may require a lot of memory and processing power. With Rust, we can create applications that process
This post shows how to use the Composite design pattern in Rust. Also, it offers a sample implementation with two levels of composition. For instance,
This post shows how to use the Iterator design pattern in Rust without using the Iterator trait or any crate. Suppose we have a struct
This post shows a simple implementation of the Chain of Responsibility pattern in Rust. For example, we have a set of struct instances that check
What are Owned and Borrowed types in Rust? To know these concepts, we need to understand first what Rust Ownership and Rust References. Get Your
Understanding what references are in Rust and how to use them is crucial. A reference is a pointer to a memory location. A location where
There are several ways to implement or use a stack in Rust. A stack is a data structure that allows us to store data in
In Rust, we can compare if two struct instances are equivalent and whose respective field values are the same. However, doing so requires using traits.
We can concatenate Strings in any programming language, including Rust, and we do it a lot. No programming language does not deal with string concatenation.
Rust has two (type of) string values – String and str. The difference between them is huge because Rust ships with functions that cater to both