検索

phrase: max: clip:
target: order:
Results of 1 - 9 of about 9 for strings (0.064 sec.)
Resultをイテレートする - Rust By Example 日本語版 13499
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ンは失敗することもあります。例えば、 fn main() { let strings = vec!["tofu", "93", "18"]; let numbers: Vec<_> = ... None になるものだけ取り除きます。 fn main() { let strings = vec!["tofu", "93", "18"]; let numbers: Vec<_> = ... り次第、イテレーションは終了します。 fn main() { let strings = vec!["tofu", "93", "18"]; let numbers: Result<Ve ... c<_>, _> = strings .into_iter() .map(|s| s.parse::<i32>()) .collect() ...
https://man.plustar.jp/rust/example/error/iter_result.html - [similar]
文字列 - Rust By Example 日本語版 10389
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ou want an array of bytes that's mostly text? Byte strings to the rescue! use std::str; fn main() { // Note t ... intln!("A byte string: {:?}", bytestring); // Byte strings can have byte escapes... let escaped = b"\x52\x75\ ... ("Some escaped bytes: {:?}", escaped); // Raw byte strings work just like raw strings let raw_bytestring = br ... o use "fancier" formatting, \ like with normal raw strings"#; // Byte strings don't have to be UTF-8 let shif ...
https://man.plustar.jp/rust/example/std/str.html - [similar]
OptionからResultを取り出す - Rust By Example 日本語版 9275
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... = vec!["42", "93", "18"]; let empty = vec![]; let strings = vec!["tofu", "93", "18"]; println!("The first do ... println!("The first doubled is {:?}", double_first(strings)); // Error 2: the element doesn't parse to a numb ... = vec!["42", "93", "18"]; let empty = vec![]; let strings = vec!["tofu", "93", "18"]; println!("The first do ... println!("The first doubled is {:?}", double_first(strings)); } 関連キーワード: Result , Option , vec , map , ...
https://man.plustar.jp/rust/example/error/multiple_error_types/option_result.htm... - [similar]
エラーをBoxする - Rust By Example 日本語版 8016
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... = vec!["42", "93", "18"]; let empty = vec![]; let strings = vec!["tofu", "93", "18"]; print(double_first(num ... )); print(double_first(empty)); print(double_first(strings)); } 参照 Dynamic dispatch and Error trait 関連キー ...
https://man.plustar.jp/rust/example/error/multiple_error_types/boxing_errors.htm... - [similar]
複数のエラー型 - Rust By Example 日本語版 8016
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... = vec!["42", "93", "18"]; let empty = vec![]; let strings = vec!["tofu", "93", "18"]; println!("The first do ... ル println!("The first doubled is {}", double_first(strings)); // Error 2: the element doesn't parse to a numb ...
https://man.plustar.jp/rust/example/error/multiple_error_types.html - [similar]
エラー型を定義する - Rust By Example 日本語版 7891
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... = vec!["42", "93", "18"]; let empty = vec![]; let strings = vec!["tofu", "93", "18"]; print(double_first(num ... )); print(double_first(empty)); print(double_first(strings)); } 関連キーワード: エラー , Result , 定義 , 関数 ...
https://man.plustar.jp/rust/example/error/multiple_error_types/define_error_type... - [similar]
?の他の活用法 - Rust By Example 日本語版 7891
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... = vec!["42", "93", "18"]; let empty = vec![]; let strings = vec!["tofu", "93", "18"]; print(double_first(num ... )); print(double_first(empty)); print(double_first(strings)); } これでかなり綺麗になりました。元の panic と比 ...
https://man.plustar.jp/rust/example/error/multiple_error_types/reenter_question_... - [similar]
エラーをラップする - Rust By Example 日本語版 7891
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... = vec!["42", "93", "18"]; let empty = vec![]; let strings = vec!["tofu", "93", "18"]; print(double_first(num ... )); print(double_first(empty)); print(double_first(strings)); } これはエラーの処理のボイラープレートを増やして ...
https://man.plustar.jp/rust/example/error/multiple_error_types/wrap_error.html - [similar]
impl Trait - Rust By Example 日本語版 7891
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... and trailing whitespace .collect() // Collect all strings in a row into a Vec<String> }) }) .collect() // Co ... and trailing whitespace .collect() // Collect all strings in a row into a Vec<String> }) }) .collect() // Co ...
https://man.plustar.jp/rust/example/trait/impl_trait.html - [similar]
PREV 1 NEXT