検索

phrase: max: clip:
target: order:
Results of 11 - 20 of about 47 for not (0.032 sec.)
ガード - Rust By Example 日本語版 7980
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... is odd"), _ => println!("No correlation..."), } } Note that the compiler does not check arbitrary expres ... o"), _ => println!("Fell through"), // This should not be possible to reach } } 参照 タプル 関連キーワード ...
https://man.plustar.jp/rust/example/flow_control/match/guard.html - [similar]
Diverging functions - Rust By Example 日本語版 7980
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... } } As opposed to all the other types, this one cannot be instantiated, because the set of all possible v ... alues this type can have is empty. Note that, it is different from the () type, which has ... ) -> u32 { let mut acc = 0; for i in 0..up_to { // Notice that the return type of this match expression m ... On the other hand, the "continue" expression does not return // u32, but it is still fine, because it ne ...
https://man.plustar.jp/rust/example/fn/diverging.html - [similar]
Partial moves - Rust By Example 日本語版 7980
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... parts stay. In such a case, the parent variable cannot be used afterwards as a whole, however the parts t ... hat are only referenced (and not moved) can still be used. fn main() { #[derive(Deb ... he person struct is {:?}", person); // `person` cannot be used but `person.age` can be used as it is not ...
https://man.plustar.jp/rust/example/scope/move/partial_move.html - [similar]
Tests - Rust By Example 日本語版 7752
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... le.write_all("Ferris\n".as_bytes()) .expect("Could not write to ferris.txt"); } } // This test tries to w ... ile.write_all("Corro\n".as_bytes()) .expect("Could not write to ferris.txt"); } } } } Although the intent ...
https://man.plustar.jp/rust/example/cargo/test.html - [similar]
Iterator::any - Rust By Example 日本語版 7752
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ng the caller may be borrowed // and modified, but not consumed. // `any`は`&mut self`を取るため、イテレー ... any captured variable may at most be // modified, not consumed. `Self::Item` states it takes // argument ...
https://man.plustar.jp/rust/example/fn/closures/closure_examples/iter_any.html - [similar]
Iterator::find - Rust By Example 日本語版 7752
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ng the caller may be borrowed // and modified, but not consumed. // `find`は`&mut self`を取るため、イテレ ... any captured variable may at most be // modified, not consumed. `&Self::Item` states it takes // argumen ...
https://man.plustar.jp/rust/example/fn/closures/closure_examples/iter_find.html - [similar]
ジェネリック境界 - Rust By Example 日本語版 7752
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 。 struct S<T: Display>(T); // Error! `Vec<T>` does not implement `Display`. This // specialization will f ... / ^ TODO: Try uncommenting these. // | Error: Does not implement either `Debug` or `HasArea`. // ^ TODO: ...
https://man.plustar.jp/rust/example/generics/bounds.html - [similar]
Testcase: map-reduce - Rust By Example 日本語版 7752
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... sum the intermediate sums produced by each thread. Note that, although we're passing references across th ... or of numbers .sum(); // println! locks stdout, so no text-interleaving occurs println!("processed segmen ... t {}, result={}", i, result); // "return" not needed, because Rust is an "expression language", ... um result: {}", final_result); } Assignments It is not wise to let our number of threads depend on user i ...
https://man.plustar.jp/rust/example/std_misc/threads/testcase_mapreduce.html - [similar]
Raw identifiers - Rust By Example 日本語版 6794
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... iers mean something to the language, and so you cannot use them in places like variable names, function n ... identifiers let you use keywords where they would not normally be allowed. This is particularly useful w ...
https://man.plustar.jp/rust/example/compatibility/raw_identifiers.html - [similar]
定数 - Rust By Example 日本語版 6794
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... mut )な値 The static lifetime is inferred and does not have to be specified. Accessing or modifying a mut ... s_big(n) { "big" } else { "small" }); // Error! Cannot modify a `const`. // エラー!`const`は変更できません ...
https://man.plustar.jp/rust/example/custom_types/constants.html - [similar]
PREV 1 2 3 4 5 NEXT