Tag - Rust
Display and Debug Traits in Rust
Display and Debug Traits in Rust
Rust 笔记
Rust is a systems programming language focused on safety, speed, and concurrency. It uses a unique ownership model to manage memory without a garbage collector.
Blanket Implementation 与 Trait Bound 完全指南
A comprehensive guide to Rust's trait system, covering blanket implementations and trait bounds with practical examples. Explores advanced patterns, performance implications, and standard library internals.
PartialEq与Eq:深入理解相等性比较的差异与实现
全面解析Rust中PartialEq与Eq特质的区别,从数学定义到实际应用场景,帮助开发者正确实现和使用这两种相等性关系。
must_use
Rust官方文档对#[must_use]属性的完整说明,包含类型、函数、trait等场景的应用规范。
Send与Sync:深入解析
全面解析Rust中Send与Sync特质的工作原理、实现机制及实际应用场景,涵盖自动实现规则、手动实现要点以及常见并发模式的最佳实践。
Send与Sync:代码示例
通过基础代码示例演示Send特质的所有权跨线程转移和Sync特质的共享不可变数据访问。
RewardInfo in agave
Solana 账户获得的奖励信息。
Clone + Send + Sync的三重约束
trait AppendVecScan: Send + Sync + Clone
型变三法则:协变 vs 逆变 vs 不变
剖析Rust类型系统中协变(&T)、逆变(fn(T))和不变(&mut T)的核心区别,掌握安全泛型编程的关键规则。
Rust编译时与运行时代码:核心特征与实用指南
深度解析Rust语言中编译时(compile-time)与运行时(runtime)代码的执行机制与判断方法,包含实际案例和优化技巧。
AIGC Hoopics
AIGC Hoopics is a comprehensive and general-purpose AI-generated content service. It is designed for scalability, flexibility, and efficiency, leveraging the power of Rust and Shell scripting to empower users in creating and managing AI-powered solutions.
hoopics-admin-restful-api
A performant admin backend for hoopics image sharing platform, rebuilt in Rust with Actix-Web and Diesel ORM. Features multi-database support and follows EggJS-inspired architecture.