検索
Results of 81 - 90 of about 148 for println (0.059 sec.)
- テストケース: 空トレイト - Rust By Example 日本語版 5503
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
対しては使用できない。 // `blue`と`Cardinal`も同様、 println!("A cardinal is {}", red(&cardinal)); println!("A...
blue jay is {}", blue(&blue_jay)); //println!("A turkey is {}", red(&_turkey)); // ^ TODO: Try...
- https://man.plustar.jp/rust/example/generics/bounds/testcase_empty.html - [similar]
- New Type Idiom - Rust By Example 日本語版 5503
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
let age = Years(5); let age_days = age.to_days(); println!("Old enough {}", old_enough(&age)); println!("Old...
enough {}", old_enough(&age_days.to_years())); // println!("Old enough {}", old_enough(&age_days)); } Uncomm...
- https://man.plustar.jp/rust/example/generics/new_types.html - [similar]
- Hello World - Rust By Example 日本語版 5503
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
ext to the console // コンソールに文字列を出力する println!("Hello World!"); } println! は文字列をコンソールに...
をクリックしてアウトプットを見てみましょう。 次に、 println! マクロをもう一行追加してアウトプットがどうなるか見...
- https://man.plustar.jp/rust/example/hello.html - [similar]
- 繰り返し - Rust By Example 日本語版 5503
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
::cmp::min($x, find_min!($($y),+)) ) } fn main() { println!("{}", find_min!(1)); println!("{}", find_min!(1 +...
2, 2)); println!("{}", find_min!(5, 2 * 3, 4)); } 関連キーワード:...
- https://man.plustar.jp/rust/example/macros/repeat.html - [similar]
- 宣言 - Rust By Example 日本語版 5503
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
e the binding // 変数を初期化 a_binding = x * x; } println!("a binding: {}", a_binding); let another_binding;...
ized binding // エラー! 初期化していない変数の使用 println!("another binding: {}", another_binding); // FIXME...
行をコメントアウトしましょう。 another_binding = 1; println!("another binding: {}", another_binding); } 未初期...
- https://man.plustar.jp/rust/example/variable_bindings/declare.html - [similar]
- 変数束縛 - Rust By Example 日本語版 5503
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
nteger`へとコピー let copied_integer = an_integer; println!("An integer: {:?}", copied_integer); println!("A...
boolean: {:?}", a_boolean); println!("Meet the unit value: {:?}", unit); // The compil...
- https://man.plustar.jp/rust/example/variable_bindings.html - [similar]
- エラーをラップする - Rust By Example 日本語版 5444
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
int(result: Result<i32>) { match result { Ok(n) => println!("The first doubled is {}", n), Err(e) => { printl...
Error: {}", e); if let Some(source) = e.source() { println!(" Caused by: {}", source); } }, } } fn main() { l...
- https://man.plustar.jp/rust/example/error/multiple_error_types/wrap_error.html - [similar]
- 継承(Derive) - Rust By Example 日本語版 5444
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
きない。これは`Debug`トレイトを実装していないため //println!("One second looks like: {:?}", _one_second); // T...
をアンコメントしてみましょう let foot = Inches(12); println!("One foot equals {:?}", foot); let meter = Centim...
imeters() < meter { "smaller" } else { "bigger" }; println!("One foot is {} than one meter.", cmp); } 参照 de...
- https://man.plustar.jp/rust/example/trait/derive.html - [similar]
- メソッド - Rust By Example 日本語版 5339
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
elf`をデストラクト let Pair(first, second) = self; println!("Destroying Pair({}, {})", first, second); // `fi...
erimeter()` === `Rectangle::perimeter(&rectangle)` println!("Rectangle perimeter: {}", rectangle.perimeter())...
; println!("Rectangle area: {}", rectangle.area()); let mut...
- https://man.plustar.jp/rust/example/fn/methods.html - [similar]
- クレート - Rust By Example 日本語版 5233
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
#![crate_name = "rary"] pub fn public_function() { println!("called rary's `public_function()`"); } fn privat...
e_function() { println!("called rary's `private_function()`"); } pub fn i...
- https://man.plustar.jp/rust/example/attribute/crate.html - [similar]