Comprehensive Rust(日语) 202412Newtons(f64); fn compute_thruster_force() -> PoundsOfForce { todo!("Ask a rocket scientist at NASA") } fn set_thruster_force(force: Newtons) { // ... } fn main() { let force = compute_thruster_force(); inlined wherever they are used: const DIGEST_SIZE: usize = 3; const ZERO: Option= Some(42); fn compute_digest(text: &str) -> [u8; DIGEST_SIZE] { let mut digest = [ZERO.unwrap_or(0); DIGEST_SIZE]; for DIGEST_SIZE] = digest[idx % DIGEST_SIZE].wrapping_add(b); } digest } fn main() { let digest = compute_digest("Hello"); println!("digest: {digest:?}"); } Rust RFC Book によると、定数変数は使用時にインライン化されます。 コンパイル時に 0 码力 | 381 页 | 1.36 MB | 10 月前3
PlantUML 1.2020.23 言語リファレンスガイド!include !include Compute/Lambda> !include left to right direction Users(sources, "Events", "millions 0 码力 | 306 页 | 3.19 MB | 1 年前3
PlantUML を使った UML の描き方 - PlantUML 言語リファレンスガイド(Version 1.2020.22)!include !include Compute/Lambda> !include left to right direction Users(sources, "Events", "millions 0 码力 | 294 页 | 3.11 MB | 1 年前3
PlantUML を使った UML の描き方 - PlantUML 言語リファレンスガイド(Version 1.2021.1)!include !include Compute/Lambda> !include left to right direction Users(sources, "Events", "millions 0 码力 | 393 页 | 4.27 MB | 1 年前3
PlantUML を使った UML の描き方 - PlantUML 言語リファレンスガイド(Version 1.2021.2)!include !include Compute/Lambda> !include left to right direction Users(sources, "Events", "millions 0 码力 | 399 页 | 4.33 MB | 1 年前3
PlantUML 1.2021.3 言語リファレンスガイド!include !include Compute/Lambda> !include left to right direction Users(sources, "Events", "millions 0 码力 | 412 页 | 4.46 MB | 1 年前3
Krita 5.2 マニュアル
cells combined form the screentone grid. The spot functions are designed to be simple and fast to compute, but for some functions this means that they don't have a uniform distribution of values. Suppose0 码力 | 1591 页 | 79.16 MB | 1 年前3
共 7 条
- 1













