検索

phrase: max: clip:
target: order:
Results of 11 - 20 of about 31 for return (0.029 sec.)
? - Rust By Example 日本語版 7781
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... .4.9. 省略 16. トレイト ❱ 16.1. 継承(Derive) 16.2. Returning Traits with dyn 16.3. 演算子のオーバーロード 16 ... retty again. ? is used at the end of an expression returning a Result , and is equivalent to a match express ... / if `div` "fails", then `DivisionByZero` will be `return`ed let ratio = div(x, y)?; // if `ln` "fails", the ... n `NonPositiveLogarithm` will be `return`ed let ln = ln(ratio)?; sqrt(ln) } pub fn op(x: f6 ...
https://man.plustar.jp/rust/example/std/result/question_mark.html - [similar]
?の他の活用法 - Rust By Example 日本語版 7668
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... .4.9. 省略 16. トレイト ❱ 16.1. 継承(Derive) 16.2. Returning Traits with dyn 16.3. 演算子のオーバーロード 16 ... 代わり、 ? なら使えます。 ? の挙動は、 unwrap または return Err(err) として説明されていました。これはほぼ正解で ... 、本当は unwrap 、もしくは return Err(From::from(err)) という意味があります。 From:: ...
https://man.plustar.jp/rust/example/error/multiple_error_types/reenter_question_... - [similar]
?の導入 - Rust By Example 日本語版 7668
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... .4.9. 省略 16. トレイト ❱ 16.1. 継承(Derive) 16.2. Returning Traits with dyn 16.3. 演算子のオーバーロード 16 ... と決めた panic! Err は処理できないことを意味するため return ? は ほぼ 1 まさしく、 Err に対して panic するより ... return するという点で unwrap と同等です。コンビネータを使 ...
https://man.plustar.jp/rust/example/error/result/enter_question_mark.html - [similar]
Result - Rust By Example 日本語版 7668
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... .4.9. 省略 16. トレイト ❱ 16.1. 継承(Derive) 16.2. Returning Traits with dyn 16.3. 演算子のオーバーロード 16 ... .0 { // This operation would `fail`, instead let's return the reason of // the failure wrapped in `Err` // 分 ... visionByZero) } else { // This operation is valid, return the result wrapped in `Ok` // このオペレーションは ...
https://man.plustar.jp/rust/example/std/result.html - [similar]
Testcase: map-reduce - Rust By Example 日本語版 7668
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... .4.9. 省略 16. トレイト ❱ 16.1. 継承(Derive) 16.2. Returning Traits with dyn 16.3. 演算子のオーバーロード 16 ... ch data segment in a separate thread // // spawn() returns a handle to the new thread, // which we MUST keep ... to access the returned value // // 'move || -> u32' is syntax for a clo ... ership of its captured variables ('move') and // * returns an unsigned 32-bit integer ('-> u32') // // Rust ...
https://man.plustar.jp/rust/example/std_misc/threads/testcase_mapreduce.html - [similar]
Unit testing - Rust By Example 日本語版 7538
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... .4.9. 省略 16. トレイト ❱ 16.1. 継承(Derive) 16.2. Returning Traits with dyn 16.3. 演算子のオーバーロード 16 ... nd ? None of the previous unit test examples had a return type. But in Rust 2018, your unit tests can return ...
https://man.plustar.jp/rust/example/testing/unit_testing.html - [similar]
if/else - Rust By Example 日本語版 7150
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... .4.9. 省略 16. トレイト ❱ 16.1. 継承(Derive) 16.2. Returning Traits with dyn 16.3. 演算子のオーバーロード 16 ... ll number, increase ten-fold"); // This expression returns an `i32`. // この式は`i32`を返す。 10 * n } else ... umber, halve the number"); // This expression must return an `i32` as well. // ここでも返り値の型は`i32`でな ...
https://man.plustar.jp/rust/example/flow_control/if_else.html - [similar]
バインディング - Rust By Example 日本語版 7150
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... .4.9. 省略 16. トレイト ❱ 16.1. 継承(Derive) 16.2. Returning Traits with dyn 16.3. 演算子のオーバーロード 16 ... ィングすることができます。 // A function `age` which returns a `u32`. // `age`関数は`u32`の値を返す。 fn age() ... n!("I'm a teen of age {:?}", n), // Nothing bound. Return the result. // マッチしなかった場合の処理 n => pri ...
https://man.plustar.jp/rust/example/flow_control/match/binding.html - [similar]
Hello World - Rust By Example 日本語版 7150
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... .4.9. 省略 16. トレイト ❱ 16.1. 継承(Derive) 16.2. Returning Traits with dyn 16.3. 演算子のオーバーロード 16 ... editable, feel free to hack it! // You can always return to the original code by clicking the "Reset" butto ...
https://man.plustar.jp/rust/example/hello.html - [similar]
圧縮 - Rust By Example 日本語版 7150
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... .4.9. 省略 16. トレイト ❱ 16.1. 継承(Derive) 16.2. Returning Traits with dyn 16.3. 演算子のオーバーロード 16 ... long as `'b`. // Here, we take in an `&'a i32` and return a `&'b i32` as a result of coercion. // `<'a: 'b, ...
https://man.plustar.jp/rust/example/scope/lifetime/lifetime_coercion.html - [similar]
PREV 1 2 3 4 NEXT