Practical solutions

Solve the problem. Keep building.

Collection of Rust how-to articles

Find the answer you need

Browse practical solutions, grouped by the task you're working on.

__COUNT__ entries on this page

How to Use Macro Across Module Files in ReactThis tutorial covers how to use macros across module files in React, enhancing code reusability and maintainability. Learn to set up Babel macros, create simple and parameterized macros, and implement them in your React components. Improve your development workflow and keep your code clean with these effective techniques. How to Get Absolute Value in RustThis tutorial covers how to get absolute values in Rust using the abs() function. Learn how to effectively apply this function to both integers and floating-point numbers, handle edge cases, and enhance your Rust programming skills with clear examples and explanations. How to Implement Rust ReflectionLearn how to implement reflection in Rust with this comprehensive guide. Explore methods using traits, macros, and external crates to achieve reflection-like capabilities. Enhance your Rust programming skills and create more dynamic applications. Perfect for both beginners and experienced developers. How to Uninstall Rust Installed via RustupThis tutorial provides a comprehensive guide on how to uninstall Rust installed via Rustup. Learn various methods, including using Python scripts and command-line commands, to remove Rust and its components effectively. Whether you are clearing space or switching programming languages, this article will help you manage your development environment with ease. How to Read and Write Files in RustThis tutorial demonstrates the way of reading and writing files in different versions of Rust. How to Declare Global Variables in RustThe Rust language offers two ways to declare and use global variables: const and static. We will discuss them in detail in this article. How to Convert ArrayD to Array2 in RustThis tutorial is about converting ArrayD to Array2 in Rust. How to Compute the Difference Between Two Sets in RustThis tutorial discusses the built in function to compute the difference between two sets. How to Print Arrays in RustThis article shows the ways to print arrays in Rust: using the println! function with a format specifier or by using a loop. How to Convert String to STR in RustStrings may not exist for the whole life of your code, which is what &'static str lifetime signifies, therefore, you can't get &'static str from them. This article will discuss the String and &static str. How to Create String Enum in RustThis tutorial is about creating string enum in Rust. How to Use OpenCV in RustIn this article, we will see how to work with OpenCV using Rust. Question Mark Operator in RustThis tutorial is about the question mark operator in Rust. Difference Between Mod and Use in RustThe keyword use is used to import the module's contents into the current scope. mod, on the other hand, imports only a single item from another module into your current scope so it can be called or referenced as needed. Unwrap and Its Uses in RustThis tutorial is about unwrap and its uses in Rust. Queue and Stack Collections in RustThis tutorial is about knowing the presence of queue and stack collections in Rust.