The Servo Book - 0.0.1architecture of Servo, and how to consume Servo and its libraries. This book is a work in progress! In the table of contents, * denotes chapters that were recently added or imported from older docs, and still need selectors — CSS selector matching. servo — Entry points for the servo application and libservo embedding library. shared — Shared traits/code used by multiple components that don't want to depend on the such as block formatting contexts (for block flow), inline formatting contexts (for inline flow), table formatting contexts, and flex formatting contexts. Each formatting context has different rules for0 码力 | 107 页 | 2.48 MB | 3 天前3
Rust 程序设计语言 简体中文版 1.85.0文件名:src/lib.rs mod front_of_house { mod hosting { fn add_to_waitlist() {} fn seat_at_table() {} } mod serving { fn take_order() {} fn serve_order() {} fn 中模块树的结构。 crate └── front_of_house ├── hosting │ ├── add_to_waitlist │ └── seat_at_table └── serving ├── take_order ├── serve_order └── take_payment 示例 7-2: count。这个可变引用在 for 循环的结尾离开作用域, 这样所有这些改变都是安全的并符合借用规则。 哈希函数 HashMap 默认使用一种叫做 SipHash 的哈希函数,它可以抵御涉及哈希表(hash table) 的 拒绝服务(Denial of Service, DoS)攻击。然而这并不是可用的最快的算法,不过为了更高的 安全性值得付出一些性能的代价。如果性能监测显示此哈希函数非常慢,以致于你无法接受,0 码力 | 562 页 | 3.23 MB | 1 月前3
共 2 条
- 1













