検索

phrase: max: clip:
target: order:
Results of 1 - 2 of about 2 for eval (0.006 sec.)
可変個引数 - Rust By Example 日本語版 11228
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ることができます: macro_rules! calculate { // 単一の`eval`のためのパターン // The pattern for a single `eval ... ` (eval $e:expr) => {{ { let val: usize = $e; // Force typ ... !("{} = {}", stringify!{$e}, val); } }}; // 複数の`eval`を再帰的に分解する // Decompose multiple `eval`s r ... ecursively (eval $e:expr, $(eval $es:expr),+) => {{ calculate! { ev ...
https://man.plustar.jp/rust/example/macros/variadics.html - [similar]
Domain Specific Languages (ドメイン特化言語、DSLs) - Rust By Example 日本語版 7485
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 出されるようにしたいです。 macro_rules! calculate { (eval $e:expr) => {{ { let val: usize = $e; // Force typ ... ngify!{$e}, val); } }}; } fn main() { calculate! { eval 1 + 2 // hehehe `eval` is _not_ a Rust keyword! // ... `eval`はRustのキーワード *じゃない* よね! } calculate! { ... eval (1 + 2) * (3 / 4) } } 出力はこうなります: 1 + 2 = ...
https://man.plustar.jp/rust/example/macros/dsl.html - [similar]
PREV 1 NEXT