検索

phrase: max: clip:
target: order:
Results of 1 - 5 of about 5 for red (0.017 sec.)
テストケース: 空トレイト - Rust By Example 日本語版 12740
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... リのその他 ❱ 20.1. スレッド ❱ 20.1.1. Testcase: map-reduce 20.2. チャネル 20.3. Path 20.4. ファイル I/O ❱ ... uct Cardinal; struct BlueJay; struct Turkey; trait Red {} trait Blue {} impl Red for Cardinal {} impl Blu ... そのトレイトが空である // か否かとは関係がない。 fn red<T: Red>(_: &T) -> &'static str { "red" } fn blue<T ... jay = BlueJay; // 七面鳥 let _turkey = Turkey; // `red()` won't work on a blue jay nor vice versa // beca ...
https://man.plustar.jp/rust/example/generics/bounds/testcase_empty.html - [similar]
列挙型 - Rust By Example 日本語版 8916
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... リのその他 ❱ 20.1. スレッド ❱ 20.1.1. Testcase: map-reduce 20.2. チャネル 20.3. Path 20.4. ファイル I/O ❱ ... 方でデストラクトすることができます。 // `allow` required to silence warnings because only // one variant is ... name. // これら3つの値は名前のみで扱うことができる Red, Blue, Green, // These likewise tie `u32` tuples t ... "What color is it?"); // An `enum` can be destructured using a `match`. // `enum`は`match`を利用してデスト ...
https://man.plustar.jp/rust/example/flow_control/match/destructuring/destructure... - [similar]
フォーマット - Rust By Example 日本語版 8659
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... リのその他 ❱ 20.1. スレッド ❱ 20.1.1. Testcase: map-reduce 20.2. チャネル 20.3. Path 20.4. ファイル I/O ❱ ... .abs(), lon_c) } } #[derive(Debug)] struct Color { red: u8, green: u8, blue: u8, } fn main() { for city i ... { println!("{}", *city); } for color in [ Color { red: 128, green: 255, blue: 90 }, Color { red: 0, gree ... n: 3, blue: 254 }, Color { red: 0, green: 0, blue: 0 }, ].iter() { // Switch this ...
https://man.plustar.jp/rust/example/hello/print/fmt.html - [similar]
Rust By Example 日本語版 7923
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... リのその他 ❱ 20.1. スレッド ❱ 20.1.1. Testcase: map-reduce 20.2. チャネル 20.3. Path 20.4. ファイル I/O ❱ ... ースを紹介します。 // This is a comment, and is ignored by the compiler // You can test this code by click ... e automatically creates the implementation // required to make this `struct` printable with `fmt::Debug`. ... -> fmt::Result { // Customize so only `x` and `y` are denoted. // `x`と`y`のみが明示的になるようにカスタマ ...
https://man.plustar.jp/rust/example/print.html - [similar]
C言語ライクな列挙型 - Rust By Example 日本語版 7666
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... リのその他 ❱ 20.1. スレッド ❱ 20.1.1. Testcase: map-reduce 20.2. チャネル 20.3. Path 20.4. ファイル I/O ❱ ... cit discriminator // 値を明示する場合 enum Color { Red = 0xff0000, Green = 0x00ff00, Blue = 0x0000ff, } f ... :One as i32); println!("roses are #{:06x}", Color::Red as i32); println!("violets are #{:06x}", Color::Bl ...
https://man.plustar.jp/rust/example/custom_types/enum/c_like.html - [similar]
PREV 1 NEXT