検索

phrase: max: clip:
target: order:
Results of 1 - 7 of about 7 for stringify (0.020 sec.)
識別子 - Rust By Example 日本語版 12795
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ($func_name:ident) => { fn $func_name() { // The `stringify!` macro converts an `ident` into a string. // `str ... t`を文字列に変える。 println!("You called {:?}()", stringify!($func_name)); } }; } // Create functions named `f ... `識別子は式に対応する。 ($expression:expr) => { // `stringify!` will convert the expression *as it is* into a st ... ring. // `stringify!`は式を *そのままの形で* 文字列に変換する println! ...
https://man.plustar.jp/rust/example/macros/designators.html - [similar]
オーバーロード - Rust By Example 日本語版 10505
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... right:expr) => { println!("{:?} and {:?} is {:?}", stringify!($left), stringify!($right), $left && $right) }; / ... $right:expr) => { println!("{:?} or {:?} is {:?}", stringify!($left), stringify!($right), $left || $right) }; } ...
https://man.plustar.jp/rust/example/macros/overload.html - [similar]
テストケース: 連結リスト - Rust By Example 日本語版 9106
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... をheap上の文字列として表したものを返すメソッド。 fn stringify(&self) -> String { match *self { Cons(head, ref ta ... eap上の文字列を返す。 format!("{}, {}", head, tail.stringify()) }, Nil => { format!("Nil") }, } } } fn main() { ... has length: {}", list.len()); println!("{}", list.stringify()); } 参照 ボックス( Box ) , メソッド 関連キーワー ...
https://man.plustar.jp/rust/example/custom_types/enum/testcase_linked_list.html - [similar]
DRY (Don't Repeat Yourself) - Rust By Example 日本語版 8397
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... len(), "{:?}: dimension mismatch: {:?} {:?} {:?}", stringify!($func), ($a.len(),), stringify!($op), ($b.len(),) ...
https://man.plustar.jp/rust/example/macros/dry.html - [similar]
Domain Specific Languages (ドメイン特化言語、DSLs) - Rust By Example 日本語版 7706
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... be integers // 型を整数に制約 println!("{} = {}", stringify!{$e}, val); } }}; } fn main() { calculate! { eval ...
https://man.plustar.jp/rust/example/macros/dsl.html - [similar]
可変個引数 - Rust By Example 日本語版 7706
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... // Force types to be integers println!("{} = {}", stringify!{$e}, val); } }}; // 複数の`eval`を再帰的に分解する ...
https://man.plustar.jp/rust/example/macros/variadics.html - [similar]
Rust By Example 日本語版 7343
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... をheap上の文字列として表したものを返すメソッド。 fn stringify(&self) -> String { match *self { Cons(head, ref ta ... eap上の文字列を返す。 format!("{}, {}", head, tail.stringify()) }, Nil => { format!("Nil") }, } } } fn main() { ... has length: {}", list.len()); println!("{}", list.stringify()); } 参照 ボックス( Box ) , メソッド 定数 Rustには ...
https://man.plustar.jp/rust/example/print.html - [similar]
PREV 1 NEXT