検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 12 for Work (0.024 sec.)
use - Rust By Example 日本語版 14521
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... allow(dead_code)] enum Status { Rich, Poor, } enum Work { Civilian, Soldier, } fn main() { // Explicitly ` ... r, Rich}; // Automatically `use` each name inside `Work`. // `Work`の中の名前をすべて`use`する use crate:: ... ることに等しい let status = Poor; // Equivalent to `Work::Civilian`. // `Work::Civilian`に等しい let work = ... => println!("The poor have no money..."), } match work { // Note again the lack of scoping. // こちらも同 ...
https://man.plustar.jp/rust/example/custom_types/enum/enum_use.html - [similar]
Rust By Example 日本語版 9533
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... きます。 // There are various optional patterns this works with. Positional // arguments can be used. // 引数 ... equire more complicated // handling. This will not work. // このようにカスタム型を用いる場合、少々扱いが複 ... res `fmt::Binary` to be implemented. This will not work. // `Debug`と`Display`は実装されていますが、`fmt:: ... ernatively, you can also use the try! macro, which works the same way. This is a bit more verbose and no l ...
https://man.plustar.jp/rust/example/print.html - [similar]
?によるOptionのアンパック - Rust By Example 日本語版 8720
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... . // その人の市外局番が存在する場合、取得する。 fn work_phone_area_code(&self) -> Option<u8> { // This wou ... me(61), number: 439222222, }), }), }; assert_eq!(p.work_phone_area_code(), Some(61)); } 関連キーワード: Op ...
https://man.plustar.jp/rust/example/error/option_unwrap/question_mark.html - [similar]
文字列 - Rust By Example 日本語版 8596
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... to play. fn main() { let raw_str = r"Escapes don't work here: \x3F \u{211D}"; println!("{}", raw_str); // ... scaped bytes: {:?}", escaped); // Raw byte strings work just like raw strings let raw_bytestring = br"\u{2 ...
https://man.plustar.jp/rust/example/std/str.html - [similar]
テストケース: 空トレイト - Rust By Example 日本語版 8189
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ; // 七面鳥 let _turkey = Turkey; // `red()` won't work on a blue jay nor vice versa // because of the bou ...
https://man.plustar.jp/rust/example/generics/bounds/testcase_empty.html - [similar]
Integration testing - Rust By Example 日本語版 8189
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... purpose is to test that many parts of your library work correctly together. Cargo looks for integration te ...
https://man.plustar.jp/rust/example/testing/integration_testing.html - [similar]
if let - Rust By Example 日本語版 8047
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... c { println!("c is {}", value); } // Binding also works with `if let` if let Foo::Qux(value @ 100) = c { ... cannot be equated, however if let will continue to work. Would you like a challenge? Fix the following exa ...
https://man.plustar.jp/rust/example/flow_control/if_let.html - [similar]
ジェネリック境界 - Rust By Example 日本語版 8047
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ment `Debug`. Regardless // of the type, this will work properly. // ジェネリック型`T`は`Debug`トレイトを実 ...
https://man.plustar.jp/rust/example/generics/bounds.html - [similar]
ディスプレイ - Rust By Example 日本語版 8047
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... res `fmt::Binary` to be implemented. This will not work. // `Debug`と`Display`は実装されていますが、`fmt:: ...
https://man.plustar.jp/rust/example/hello/print/print_display.html - [similar]
フォーマットしてプリント - Rust By Example 日本語版 8047
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... きます。 // There are various optional patterns this works with. Positional // arguments can be used. // 引数 ... equire more complicated // handling. This will not work. // このようにカスタム型を用いる場合、少々扱いが複 ...
https://man.plustar.jp/rust/example/hello/print.html - [similar]
PREV 1 2 NEXT