検索
Results of 1 - 10 of about 39 for have (0.025 sec.)
- Combinators: and_then - Rust By Example 日本語版 16524
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
num Day { Monday, Tuesday, Wednesday } // We don't have the ingredients to make Sushi. // 我々は寿司の材料...
を持っていない fn have_ingredients(food: Food) -> Option<Food> { match fo...
{ Food::Sushi => None, _ => Some(food), } } // We have the recipe for everything except Cordon Bleu. // コ...
ドン・ブルー(Cordon Bleu)のレシピも持っていない。 fn have_recipe(food: Food) -> Option<Food> { match food {...
- https://man.plustar.jp/rust/example/error/option_unwrap/and_then.html - [similar]
- Disambiguating overlapping traits - Rust By Example 日本語版 9757
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
uire the same name? For example, many traits might have a method named get() . They might even have differ...
ll those methods? To disambiguate between them, we have to use Fully Qualified Syntax. trait UsernameWidge...
- https://man.plustar.jp/rust/example/trait/disambiguating.html - [similar]
- Rust By Example 日本語版 9021
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
スコープを明示していない Rich => println!("The rich have lots of money!"), Poor => println!("The poor have...
)な値 The static lifetime is inferred and does not have to be specified. Accessing or modifying a mutable...
k), // Don't need another arm because all variants have been examined // 全ての値を列挙したのでその他の場合...
ry expressions for whether all possible conditions have been checked. Therefore, you must use the _ patter...
- https://man.plustar.jp/rust/example/print.html - [similar]
- 文字列 - Rust By Example 日本語版 9021
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
] = b"this is a byte string"; // Byte arrays don't have the `Display` trait, so printing them is a bit lim...
te string: {:?}", bytestring); // Byte strings can have byte escapes... let escaped = b"\x52\x75\x73\x74 a...
e with normal raw strings"#; // Byte strings don't have to be UTF-8 let shift_jis = b"\x82\xe6\x82\xa8\x82...
- https://man.plustar.jp/rust/example/std/str.html - [similar]
- use - Rust By Example 日本語版 8536
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
スコープを明示していない Rich => println!("The rich have lots of money!"), Poor => println!("The poor have...
- https://man.plustar.jp/rust/example/custom_types/enum/enum_use.html - [similar]
- 省略 - Rust By Example 日本語版 8536
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
/ `elided_input` and `annotated_input` essentially have identical signatures // because the lifetime of `e...
} // Similarly, `elided_pass` and `annotated_pass` have identical signatures // because the lifetime is ad...
- https://man.plustar.jp/rust/example/scope/lifetime/elision.html - [similar]
- Returning Traits with dyn - Rust By Example 日本語版 8536
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
eturn type requires. This means all your functions have to return a concrete type. Unlike other languages,...
if you have a trait like Animal , you can't write a function t...
- https://man.plustar.jp/rust/example/trait/dyn.html - [similar]
- Iterator::find - Rust By Example 日本語版 8301
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
nd we want to reference one of its // items, so we have to destructure `&&i32` to `i32` // `yield`された要...
nd we want to reference one of // its items, so we have to destructure `&i32` to `i32` // `into_iter`の場合...
- https://man.plustar.jp/rust/example/fn/closures/closure_examples/iter_find.html - [similar]
- ドキュメンテーション - Rust By Example 日本語版 8301
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
代表されます。 pub struct Person { /// A person must have a name, no matter how much Juliet may hate it ///...
ライス /// /// # Examples /// /// ``` /// // You can have rust code between fences inside the comments /// /...
- https://man.plustar.jp/rust/example/meta/doc.html - [similar]
- 関数 - Rust By Example 日本語版 8301
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
mes. In this case, it // would be fine for both to have the same lifetime `'a`, but // in more complex cas...
}, y is {}", x, y); } // Returning references that have been passed in is acceptable. // However, the corr...
- https://man.plustar.jp/rust/example/scope/lifetime/fn.html - [similar]