検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 193 for macro (0.048 sec.)
識別子 - Rust By Example 日本語版 15080
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... traits 16.9. Disambiguating overlapping traits 17. macro_rules! ❱ 17.1. 構文 ❱ 17.1.1. 識別子 17.1.2. オーバ ... Rust Coal Navy Ayu Rust By Example 日本語版 識別子 macroの引数は $ が頭につきます。型は 識別子 ( designator ... )でアノテーションされます。 macro_rules! create_function { // This macro takes an ar ... :ident) => { fn $func_name() { // The `stringify!` macro converts an `ident` into a string. // `stringify!` ...
https://man.plustar.jp/rust/example/macros/designators.html - [similar]
macro_rules! - Rust By Example 日本語版 14830
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... traits 16.9. Disambiguating overlapping traits 17. macro_rules! ❱ 17.1. 構文 ❱ 17.1.1. 識別子 17.1.2. オーバ ... fault) Rust Coal Navy Ayu Rust By Example 日本語版 macro_rules! Rustはメタプログラミングを可能にする、パワフ ... グに出くわすことがありません。 マクロを作成するには macro_rules! というマクロを使用します。 // This is a sim ... ple macro named `say_hello`. // `say_hello`という名のシンプル ...
https://man.plustar.jp/rust/example/macros.html - [similar]
Domain Specific Languages (ドメイン特化言語、DSLs) - Rust By Example 日本語版 9093
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... traits 16.9. Disambiguating overlapping traits 17. macro_rules! ❱ 17.1. 構文 ❱ 17.1.1. 識別子 17.1.2. オーバ ... と、出力がコンソールに書き出されるようにしたいです。 macro_rules! calculate { (eval $e:expr) => {{ { let val: ... にも注目してください。 外側のは、 () や [] に加え、 macro_rules! の構文の一部です。 関連キーワード: 関数 , R ... ラー , eval , テストケース , Option , map , rules , macro , 定義 ...
https://man.plustar.jp/rust/example/macros/dsl.html - [similar]
DRY (Don't Repeat Yourself) - Rust By Example 日本語版 8844
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... traits 16.9. Disambiguating overlapping traits 17. macro_rules! ❱ 17.1. 構文 ❱ 17.1.1. 識別子 17.1.2. オーバ ... つかを見ていきます。 use std::ops::{Add, Mul, Sub}; macro_rules! assert_equal_len { // The `tt` (token tree) ... , ($a.len(),), stringify!($op), ($b.len(),)); }; } macro_rules! op { ($func:ident, $bound:ident, $op:tt, $m ... b_assign, Sub, -=, sub); mod test { use std::iter; macro_rules! test { ($func:ident, $x:expr, $y:expr, $z:e ...
https://man.plustar.jp/rust/example/macros/dry.html - [similar]
オーバーロード - Rust By Example 日本語版 7855
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... traits 16.9. Disambiguating overlapping traits 17. macro_rules! ❱ 17.1. 構文 ❱ 17.1.1. 識別子 17.1.2. オーバ ... わせを取るようにオーバーロードすることができるため、 macro_rules! はマッチと似たような使い方をすることができま ... `と`$right`を異なる呼び出し方に応じて // 比較する。 macro_rules! test { // Arguments don't need to be separa ...
https://man.plustar.jp/rust/example/macros/overload.html - [similar]
繰り返し - Rust By Example 日本語版 6605
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... traits 16.9. Disambiguating overlapping traits 17. macro_rules! ❱ 17.1. 構文 ❱ 17.1.1. 識別子 17.1.2. オーバ ... は引数として与えられた数字の中の最低の値を計算する。 macro_rules! find_min { // Base case: // 基本となるケース ...
https://man.plustar.jp/rust/example/macros/repeat.html - [similar]
可変個引数 - Rust By Example 日本語版 6605
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... traits 16.9. Disambiguating overlapping traits 17. macro_rules! ❱ 17.1. 構文 ❱ 17.1.1. 識別子 17.1.2. オーバ ... ate! マクロを、可変個引数に拡張することができます: macro_rules! calculate { // 単一の`eval`のためのパターン ...
https://man.plustar.jp/rust/example/macros/variadics.html - [similar]
Dev-dependencies - Rust By Example 日本語版 6605
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... traits 16.9. Disambiguating overlapping traits 17. macro_rules! ❱ 17.1. 構文 ❱ 17.1.1. 識別子 17.1.2. オーバ ... , which extends standard assert_eq! and assert_ne! macros, to provide colorful diff. One such example is us ... ing a crate that extends standard assert! macros. File Cargo.toml : # standard crate data is left ... / externing crate for test-only use #[cfg(test)] #[macro_use] extern crate pretty_assertions; pub fn add(a: ...
https://man.plustar.jp/rust/example/testing/dev_dependencies.html - [similar]
テストケース: リスト - Rust By Example 日本語版 6355
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... traits 16.9. Disambiguating overlapping traits 17. macro_rules! ❱ 17.1. 構文 ❱ 17.1.1. 識別子 17.1.2. オーバ ... value)?; Alternatively, you can also use the try! macro, which works the same way. This is a bit more verb ...
https://man.plustar.jp/rust/example/hello/print/print_display/testcase_list.html - [similar]
ベクタ型 - Rust By Example 日本語版 6355
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... traits 16.9. Disambiguating overlapping traits 17. macro_rules! ❱ 17.1. 構文 ❱ 17.1.1. 識別子 17.1.2. オーバ ... 0) into: {:?}", collected_iterator); // The `vec!` macro can be used to initialize a vector // ベクタの初期 ...
https://man.plustar.jp/rust/example/std/vec.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 NEXT