検索
Results of 31 - 40 of about 47 for not (0.057 sec.)
- 列挙型 - Rust By Example 日本語版 6551
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
ます。 // Create an `enum` to classify a web event. Note how both // names and type information together s...
es a `WebEvent` enum as an argument and // returns nothing. // 引数として`WebEvent`列挙型をとり、何も返さ...
) { // We can refer to each variant via its alias, not its long and inconvenient // name. // 長くて不便な...
- https://man.plustar.jp/rust/example/custom_types/enum.html - [similar]
- エラーをラップする - Rust By Example 日本語版 6551
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
:Parse(..) => write!(f, "the provided string could not be parsed as int"), } } } impl error::Error for Do...
- https://man.plustar.jp/rust/example/error/multiple_error_types/wrap_error.html - [similar]
- Combinators: map - Rust By Example 日本語版 6551
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
(f)| Cooked(f)) } // Check whether there's food or not before trying to eat it! // 食べる前に、食べ物の有...
- https://man.plustar.jp/rust/example/error/option_unwrap/map.html - [similar]
- if let - Rust By Example 日本語版 6551
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
a { println!("a is foobar"); } // Variable b does not match Foo::Bar // So this will print nothing if le...
ue @ 100) = c { println!("c is one hundred"); } } Another benefit is that if let allows us to match non-p...
fail to compile, because instances of the enum cannot be equated, however if let will continue to work....
- https://man.plustar.jp/rust/example/flow_control/if_let.html - [similar]
- while let - Rust By Example 日本語版 6551
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
onal `else`/`else if` // clauses. `while let` does not have these. // ^ `if let`の場合は`else`/`else if`句...
- https://man.plustar.jp/rust/example/flow_control/while_let.html - [similar]
- 要素の捕捉 - Rust By Example 日本語版 6551
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
till // available and uncommenting above line will not cause an error. // クロージャのシグネチャから`move...
- https://man.plustar.jp/rust/example/fn/closures/capture.html - [similar]
- 幽霊型パラメータ - Rust By Example 日本語版 6551
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
uct<A, B> { first: A, phantom: PhantomData<B> } // Note: Storage is allocated for generic type `A`, but n...
ot for `B`. // Therefore, `B` cannot be used in computations. // 注意点: ジェネリック型...
; // Compile-time Error! Type mismatch so these cannot be compared: // コンパイルエラー!型が違うので`==`で...
; // Compile-time Error! Type mismatch so these cannot be compared: // コンパイルエラー! 型が違うので比較...
- https://man.plustar.jp/rust/example/generics/phantom.html - [similar]
- ジェネリクス - Rust By Example 日本語版 6551
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
efining the type `Single`, the first use of `A` is not preceded by `<A>`. // Therefore, `Single` is a con...
- https://man.plustar.jp/rust/example/generics.html - [similar]
- ディスプレイ - Rust By Example 日本語版 6551
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
ates whether the // operation succeeded or failed. Note that `write!` uses syntax which // is very simila...
t::Result { // Customize so only `x` and `y` are denoted. // `x`と`y`のみが明示的になるようにカスタマイズ...
equires `fmt::Binary` to be implemented. This will not work. // `Debug`と`Display`は実装されていますが、`...
- https://man.plustar.jp/rust/example/hello/print/print_display.html - [similar]
- フォーマットしてプリント - Rust By Example 日本語版 6551
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
re require more complicated // handling. This will not work. // このようにカスタム型を用いる場合、少々扱い...
- https://man.plustar.jp/rust/example/hello/print.html - [similar]