検索
Results of 1 - 6 of about 6 for expr (0.006 sec.)
- 識別子 - Rust By Example 日本語版 11899
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...macro_rules! print_result { // This macro takes an expression of type `expr` and prints // it as a string...along with its result. // The `expr` designator is used for expressions. // このマクロ...は`expr`識別子に対応する値を引数として取り、 // その結果を...文字列としてプリントする。 // `expr`識別子は式に対応する。 ($expression:expr) => { //... - https://man.plustar.jp/rust/example/macros/designators.html - [similar]
- オーバーロード - Rust By Example 日本語版 10346
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...切らなくてもよい // テンプレートの形態は自由! ($left:expr; and $right:expr) => { println!("{:?} and {:?} is...ぞれの`=>`節はセミコロンで終わる必要がある。 ($left:expr; or $right:expr) => { println!("{:?} or {:?} is {:...t , 関数 , Result , By , Rust , Example , エラー , expr , Option , テストケース... - https://man.plustar.jp/rust/example/macros/overload.html - [similar]
- DRY (Don't Repeat Yourself) - Rust By Example 日本語版 9943
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...クン木)識別子は演算子とトークン用の識別子です。 ($a:expr, $b:expr, $func:ident, $op:tt) => { assert!($a.len...se std::iter; macro_rules! test { ($func:ident, $x:expr, $y:expr, $z:expr) => { #[test] fn $func() { for s... - https://man.plustar.jp/rust/example/macros/dry.html - [similar]
- 繰り返し - Rust By Example 日本語版 8189
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...! find_min { // Base case: // 基本となるケース ($x:expr) => ($x); // `$x` followed by at least one `$y,` /.../ `$x`に少なくとも1つの`$y`が続く場合 ($x:expr, $($y:expr),+) => ( // Call `find_min!` on the tai... - https://man.plustar.jp/rust/example/macros/repeat.html - [similar]
- 可変個引数 - Rust By Example 日本語版 8189
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...パターン // The pattern for a single `eval` (eval $e:expr) => {{ { let val: usize = $e; // Force types to be...// Decompose multiple `eval`s recursively (eval $e:expr, $(eval $es:expr),+) => {{ calculate! { eval $e }... - https://man.plustar.jp/rust/example/macros/variadics.html - [similar]
- Domain Specific Languages (ドメイン特化言語、DSLs) - Rust By Example 日本語版 6233
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...ようにしたいです。 macro_rules! calculate { (eval $e:expr) => {{ { let val: usize = $e; // Force types to be... - https://man.plustar.jp/rust/example/macros/dsl.html - [similar]
PREV
1
NEXT