検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 15 for マッチ (0.023 sec.)
match - Rust By Example 日本語版 14211
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... tch を用いて、C言語における switch のようなパターンマッチングを行うことができます。 マッチする最初のアームが評 ... ch number { // Match a single value // 単一の値とのマッチをチェック 1 => println!("One!"), // Match several v ... alues // いくつかの値とのマッチをチェック 2 | 3 | 5 | 7 | 11 => println!("This is a ... う // Match an inclusive range // 特定の範囲の値とのマッチをチェック 13..=19 => println!("A teen"), // Handle ...
https://man.plustar.jp/rust/example/flow_control/match.html - [similar]
Rust By Example 日本語版 11215
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... た後に stabilization report を読んでください。 参照 マッチ( match ) , 関数( fn ) , 文字列( String ) , "Type a ... , Soldier => println!("Soldiers fight!"), } } 参照 マッチ( match ) , use C言語ライクな列挙型 列挙型はC言語の ... lf`の型は`&List`であるので、`*self`は`List`になる。マッチングは // リファレンス(`&T`)ではなく実体(`T`)に対して ... tch を用いて、C言語における switch のようなパターンマッチングを行うことができます。 マッチする最初のアームが評 ...
https://man.plustar.jp/rust/example/print.html - [similar]
バインディング - Rust By Example 日本語版 9596
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... le 日本語版 バインディング いくつかの変数をまとめてマッチ対象とした場合、そのうちの一つを分岐先で使用すること ... ができる。 // しかしその場合、子供は正確には何歳? // マッチした値を`n`にバインディングすることで値を使用できる。 ... {:?}", n), // Nothing bound. Return the result. // マッチしなかった場合の処理 n => println!("I'm an old perso ...
https://man.plustar.jp/rust/example/flow_control/match/binding.html - [similar]
繰り返し - Rust By Example 日本語版 8777
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 。同様に * の場合は、0以上を示します。 以下の例では、マッチ対象を $(...),+ で囲むことにより、カンマで区切られた ... 1つ以上の式とマッチします。最後のセミコロンは必須ではないことに注目しま ...
https://man.plustar.jp/rust/example/macros/repeat.html - [similar]
ポインタとref - Rust By Example 日本語版 8551
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 上で定義した`reference`という変数が`&val`とのパターンマッチ // に用いられた場合、以下の2つの値が比較されている ... nce before matching. // `&`を使用したくない場合は、マッチングの前にデリファレンスする。 match *reference { va ...
https://man.plustar.jp/rust/example/flow_control/match/destructuring/destructure... - [similar]
オーバーロード - Rust By Example 日本語版 8063
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... オーバーロードすることができるため、 macro_rules! はマッチと似たような使い方をすることができます。 // `test!` ...
https://man.plustar.jp/rust/example/macros/overload.html - [similar]
use - Rust By Example 日本語版 7976
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... , Soldier => println!("Soldiers fight!"), } } 参照 マッチ( match ) , use 関連キーワード: use , 関数 , Work , ...
https://man.plustar.jp/rust/example/custom_types/enum/enum_use.html - [similar]
Option - Rust By Example 日本語版 7976
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... / `Option` の値は、他のあらゆる列挙型と同様パターンマッチに使用できる。 match checked_division(dividend, divi ...
https://man.plustar.jp/rust/example/std/option.html - [similar]
refパターン - Rust By Example 日本語版 7819
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 本語版 refパターン let を介してデストラクトやパターンマッチングを行う場合、 ref キーワードを用いて構造体・タプル ...
https://man.plustar.jp/rust/example/scope/borrow/ref.html - [similar]
Tests - Rust By Example 日本語版 7732
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... d; 0 ignored; 0 measured; 0 filtered out パターンにマッチする名前のテストを実行することもできます。 $ cargo t ...
https://man.plustar.jp/rust/example/cargo/test.html - [similar]
PREV 1 2 NEXT