検索

phrase: max: clip:
target: order:
Results of 71 - 80 of about 148 for println (0.060 sec.)
スタティックライフタイム - Rust By Example 日本語版 5667
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... する let static_string = "I'm in read-only memory"; println!("static_string: {}", static_string); // When `sta ... let coerced_static = coerce_static(&lifetime_num); println!("coerced_static: {}", coerced_static); } println! ... ebug; fn print_it( input: impl Debug + 'static ) { println!( "'static value passed in is: {:?}", input ); } f ...
https://man.plustar.jp/rust/example/scope/lifetime/static_lifetime.html - [similar]
Testcase: map-reduce - Rust By Example 日本語版 5667
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... or (i, data_segment) in chunked_data.enumerate() { println!("data segment {} is \"{}\"", i, data_segment); // ... d sum the resulting iterator of numbers .sum(); // println! locks stdout, so no text-interleaving occurs prin ... to_iter().map(|c| c.join().unwrap()).sum::<u32>(); println!("Final sum result: {}", final_result); } Assignme ...
https://man.plustar.jp/rust/example/std_misc/threads/testcase_mapreduce.html - [similar]
ミュータビリティ - Rust By Example 日本語版 5550
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... す。 fn main() { let immutable_box = Box::new(5u32); println!("immutable_box contains {}", immutable_box); // M ... ィを変更する。 let mut mutable_box = immutable_box; println!("mutable_box contains {}", mutable_box); // Modif ... ts of the box // boxの内容を変更 *mutable_box = 4; println!("mutable_box now contains {}", mutable_box); } 関 ...
https://man.plustar.jp/rust/example/scope/move/mut.html - [similar]
定数 - Rust By Example 日本語版 5503
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... in the main thread // main 関数の中から定数を参照 println!("This is {}", LANGUAGE); println!("The threshold ... is {}", THRESHOLD); println!("{} is {}", n, if is_big(n) { "big" } else { "sma ...
https://man.plustar.jp/rust/example/custom_types/constants.html - [similar]
複数のエラー型 - Rust By Example 日本語版 5503
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... = vec![]; let strings = vec!["tofu", "93", "18"]; println!("The first doubled is {}", double_first(numbers)) ... ; println!("The first doubled is {}", double_first(empty)); ... input vector is empty // エラー1:入力が空ベクトル println!("The first doubled is {}", double_first(strings)) ...
https://man.plustar.jp/rust/example/error/multiple_error_types.html - [similar]
式 - Rust By Example 日本語版 5503
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ミコロンがあるので`z`には`()`が入ります。 2 * x; }; println!("x is {:?}", x); println!("y is {:?}", y); printl ...
https://man.plustar.jp/rust/example/expression.html - [similar]
if/else - Rust By Example 日本語版 5503
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... is zero", n); } let big_n = if n < 10 && n > -10 { println!(", and is a small number, increase ten-fold"); // ... an `i32`. // この式は`i32`を返す。 10 * n } else { println!(", and is a big number, halve the number"); // Th ... ように! // `let`による変数束縛の際には必ず必要です! println!("{} -> {}", n, big_n); } 関連キーワード: else , 関 ...
https://man.plustar.jp/rust/example/flow_control/if_else.html - [similar]
クロージャを返す関数 - Rust By Example 日本語版 5503
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... -> impl Fn() { let text = "Fn".to_owned(); move || println!("This is a: {}", text) } fn create_fnmut() -> imp ... l FnMut() { let text = "FnMut".to_owned(); move || println!("This is a: {}", text) } fn create_fnonce() -> im ... FnOnce() { let text = "FnOnce".to_owned(); move || println!("This is a: {}", text) } fn main() { let fn_plain ...
https://man.plustar.jp/rust/example/fn/closures/output_parameters.html - [similar]
Diverging functions - Rust By Example 日本語版 5503
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ome_fn() { () } fn main() { let a: () = some_fn(); println!("This function returns and you can see this line. ... ) { let x: ! = panic!("This call never returns."); println!("You will never see this line!"); } Although this ... on. false => continue, }; acc += addition; } acc } println!("Sum of odd numbers up to 9 (excluding): {}", sum ...
https://man.plustar.jp/rust/example/fn/diverging.html - [similar]
高階関数 - Rust By Example 日本語版 5503
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... n() { // 1000以下の奇数を2乗した値の合計を求める。 println!("Find the sum of all the squared odd numbers unde ... らば値を値を足しあわせていく。 acc += n_squared; } } println!("imperative style: {}", acc); // Functional appro ... d| acc + n_squared); // Sum them // 足し合わせる。 println!("functional style: {}", sum_of_squared_odd_number ...
https://man.plustar.jp/rust/example/fn/hof.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 NEXT