検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 18 for マクロ (0.024 sec.)
macro_rules! - Rust By Example 日本語版 14224
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... s! Rustはメタプログラミングを可能にする、パワフルなマクロシステムを備えています。これまで見てきたように、マク ... にコンパイルされる点です。 しかし、Cやその他の言語のマクロが文字列のプリプロセッシングをするのと異なり、Rustの ... 演算子の優先順位)のバグに出くわすことがありません。 マクロを作成するには macro_rules! というマクロを使用します ... med `say_hello`. // `say_hello`という名のシンプルなマクロ macro_rules! say_hello { // `()` indicates that th ...
https://man.plustar.jp/rust/example/macros.html - [similar]
Rust By Example 日本語版 11942
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 未知の型 Self に対して定義された一連のメソッドです。 マクロ エラーハンドリング - 失敗に対処するRust流のやり方を ... println! は文字列をコンソールにプリントするための マクロ です。 バイナリファイルは rustc と呼ばれるRustのコ ... クしてアウトプットを見てみましょう。 次に、 println! マクロをもう一行追加してアウトプットがどうなるか見てみまし ... プリント関係の機能は std::fmt で定義される幾つかの マクロ によって扱われます。このマクロには以下が含まれます ...
https://man.plustar.jp/rust/example/print.html - [similar]
識別子 - Rust By Example 日本語版 9248
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... gnator is used for variable/function names. // このマクロは`ident`識別子に対応する値を引数として取り // `$fun ... rts an `ident` into a string. // `stringify!`というマクロは`ident`を文字列に変える。 println!("You called {:? ... named `foo` and `bar` with the above macro. // 上のマクロを利用して`foo`、`bar`という名の関数を作成する。 cre ... `expr` designator is used for expressions. // このマクロは`expr`識別子に対応する値を引数として取り、 // その ...
https://man.plustar.jp/rust/example/macros/designators.html - [similar]
フォーマットしてプリント - Rust By Example 日本語版 8853
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... プリント関係の機能は std::fmt で定義される幾つかの マクロ によって扱われます。このマクロには以下が含まれます ... 実行した際に生じるエラーを修復しましょう。 println! マクロを追加し、表示される小数部の桁数を調整して Pi is rou ... ックする必要があるかもしれません。) 参照 std::fmt , マクロ , 構造体 , トレイト 関連キーワード: フォーマット , ...
https://man.plustar.jp/rust/example/hello/print.html - [similar]
Domain Specific Languages (ドメイン特化言語、DSLs) - Rust By Example 日本語版 8785
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ific Languages (ドメイン特化言語、DSLs) DSLとはRustマクロに埋め込まれた小さな「言語」のことです。 マクロ機能は ... っと複雑なインターフェースも開発されています。 また、マクロの中に2組の括弧があることにも注目してください。 外側 ...
https://man.plustar.jp/rust/example/macros/dsl.html - [similar]
cfg - Rust By Example 日本語版 8270
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... #[cfg(...)] をアトリビュートとして使用する。 cfg! マクロ: cfg!(...) をブーリアンとして評価する。 前者は条件 ... not* linux!"); } } 参照 参照( reference ) , cfg! , マクロ . 関連キーワード: cfg , 関数 , Result , By , Examp ...
https://man.plustar.jp/rust/example/attribute/cfg.html - [similar]
Hello World - Rust By Example 日本語版 8218
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... println! は文字列をコンソールにプリントするための マクロ です。 バイナリファイルは rustc と呼ばれるRustのコ ... クしてアウトプットを見てみましょう。 次に、 println! マクロをもう一行追加してアウトプットがどうなるか見てみまし ...
https://man.plustar.jp/rust/example/hello.html - [similar]
DRY (Don't Repeat Yourself) - Rust By Example 日本語版 8098
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... st By Example 日本語版 DRY (Don't Repeat Yourself) マクロは関数やテストなどにおいて、共通の部分を抽出すること ... 、 *= 、 -= 、 Vec<T> を実装、テストするにあたって、マクロがどのように役立つかを見ていきます。 use std::ops::{ ...
https://man.plustar.jp/rust/example/macros/dry.html - [similar]
?の導入 - Rust By Example 日本語版 8047
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ply("10", "2")); print(multiply("t", "2")); } try! マクロ ? ができる前、同様の動作を try! マクロによって行う ...
https://man.plustar.jp/rust/example/error/result/enter_question_mark.html - [similar]
Introduction - Rust By Example 日本語版 7755
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 未知の型 Self に対して定義された一連のメソッドです。 マクロ エラーハンドリング - 失敗に対処するRust流のやり方を ...
https://man.plustar.jp/rust/example/index.html - [similar]
PREV 1 2 NEXT