Handle Errors
🔧 深入掌握 Rust 错误处理 🛠️ 在 Rust 中,错误处理是保证程序健壮性的关键部分。Rust 的错误处理机制不仅强大而且灵活,允许开发者以多种方式表达和处理错误。虽然第三方库如 thiserror 或 anyhow 提供了便捷的错误处理方式,但 Rust 的标准库同样提供了一套完整的工
Study
未读
Learn about rust marcos
Learn about rust marcos Rust marcos are a powerful feature that allow you to write code that is more concise, readable, and maintainable. They are use
Rust with Algorithms and Crypto
Rust 与 web3 Rust 与 web3 1. Rust 语言参考资料与实现方法
Radix sort by rust
基数排序在 Rust 中的实现 🦀 基数排序是一种非比较型的整数排序算法,它通过将整数键按照构成这些键的各个数字分组,然后对这些分组进行排序来实现排序。
Web3
未读
Foundry Base Usage
Foundry Base Usage Create a .env (only for Test Account) Input the private key of test account and RPC_URL PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238f
Framing and Frame in Net
Framing and Frame in Network Communication 📦 Framing is a fundamental concept in network communication, transforming a continuous stream of data into
Study
未读
write marcos by your self
Write marcos by your self Some examples Rust 宏的示例代码,展示了一些常见的用法和技巧: 简单的重复代码块: macro_rules! repeat {
($expr:expr; $n:expr) => {
{
Tokio Async Example
Tokio Async Example This example demonstrates how to use the tokio crate to perform asynchronous operations. Tokio Async Example Prerequisites Install
Differences between rust format marco
Differences between rust format marco In Rust, the format_args! macro and the format! macro are both used for formatting strings, but they have some k