検索

phrase: max: clip:
target: order:
Results of 1 - 3 of about 3 for FooBar (0.010 sec.)
演算子のオーバーロード - Rust By Example 日本語版 11775
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... s; struct Foo; struct Bar; #[derive(Debug)] struct FooBar; #[derive(Debug)] struct BarFoo; // The `std::ops: ... lowing block implements the operation: Foo + Bar = FooBar // `std::ops::Add`トレイトは`+`の振る舞いを規定する ... の時に呼び出されるトレイト。つまり以下は`Foo + Bar = FooBar`という振る舞いを // もたらす。 impl ops::Add<Bar> ... for Foo { type Output = FooBar; fn add(self, _rhs: Bar) -> FooBar { println!("> F ...
https://man.plustar.jp/rust/example/trait/ops.html - [similar]
if let - Rust By Example 日本語版 8798
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ches Foo::Bar if let Foo::Bar = a { println!("a is foobar"); } // Variable b does not match Foo::Bar // So t ... print nothing if let Foo::Bar = b { println!("b is foobar"); } // Variable c matches Foo::Qux which has a va ... e-time error. Use `if let` instead. println!("a is foobar"); } } 参照 列挙型 , オプション , RFC 関連キーワー ...
https://man.plustar.jp/rust/example/flow_control/if_let.html - [similar]
Rust By Example 日本語版 7310
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ches Foo::Bar if let Foo::Bar = a { println!("a is foobar"); } // Variable b does not match Foo::Bar // So t ... print nothing if let Foo::Bar = b { println!("b is foobar"); } // Variable c matches Foo::Qux which has a va ... e-time error. Use `if let` instead. println!("a is foobar"); } } 参照 列挙型 , オプション , RFC while let if ...
https://man.plustar.jp/rust/example/print.html - [similar]
PREV 1 NEXT