検索
Results of 1 - 10 of about 10 for why (0.022 sec.)
- ファイルシステムとのやり取り - Rust By Example 日本語版 13318
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
値は`io::Result<()>` match fs::create_dir("a") { Err(why) => println!("! {:?}", why.kind()), Ok(_) => {}, }...
ho("hello", &Path::new("a/b.txt")).unwrap_or_else(|why| { println!("! {:?}", why.kind()); }); println!("`...
t<()>` fs::create_dir_all("a/c/d").unwrap_or_else(|why| { println!("! {:?}", why.kind()); }); println!("`...
"); touch(&Path::new("a/c/e.txt")).unwrap_or_else(|why| { println!("! {:?}", why.kind()); }); println!("`...
- https://man.plustar.jp/rust/example/std_misc/fs.html - [similar]
- Result - Rust By Example 日本語版 10726
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
をラップします。( value は型 T を持ちます。) Err(why) ... これはオペレーションの失敗を意味します。 why...
した理由が(必ずではありませんが)書かれています。( why の型は E です。) mod checked { // Mathematical "e...
の`match`ピラミッド! match checked::div(x, y) { Err(why) => panic!("{:?}", why), Ok(ratio) => match checke...
d::ln(ratio) { Err(why) => panic!("{:?}", why), Ok(ln) => match checked::...
- https://man.plustar.jp/rust/example/std/result.html - [similar]
- パイプ - Rust By Example 日本語版 9707
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
o::piped()) .stdout(Stdio::piped()) .spawn() { Err(why) => panic!("couldn't spawn wc: {}", why), Ok(proce...
stdin.unwrap().write_all(PANGRAM.as_bytes()) { Err(why) => panic!("couldn't write to wc stdin: {}", why),...
ocess.stdout.unwrap().read_to_string(&mut s) { Err(why) => panic!("couldn't read wc stdout: {}", why), Ok...
} 関連キーワード: パイプ , Option , 関数 , stdin , why , Result , process , Example , Rust , By...
- https://man.plustar.jp/rust/example/std_misc/process/pipe.html - [similar]
- create - Rust By Example 日本語版 8706
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
e>` let mut file = match File::create(&path) { Err(why) => panic!("couldn't create {}: {}", display, why)...
match file.write_all(LOREM_IPSUM.as_bytes()) { Err(why) => panic!("couldn't write to {}: {}", display, wh...
- https://man.plustar.jp/rust/example/std_misc/file/create.html - [similar]
- open - Rust By Example 日本語版 8706
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
ption`メソッドはエラーを説明する文字列を返す。 Err(why) => panic!("couldn't open {}: {}", display, why),...
ng::new(); match file.read_to_string(&mut s) { Err(why) => panic!("couldn't read {}: {}", display, why),...
- https://man.plustar.jp/rust/example/std_misc/file/open.html - [similar]
- ? - Rust By Example 日本語版 7991
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
pub fn op(x: f64, y: f64) { match op_(x, y) { Err(why) => panic!("{}", match why { MathError::NonPositiv...
- https://man.plustar.jp/rust/example/std/result/question_mark.html - [similar]
- if let - Rust By Example 日本語版 7544
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
ither implements nor derives PartialEq. // That is why comparing Foo::Bar == a fails below. enum Foo {Bar...
- https://man.plustar.jp/rust/example/flow_control/if_let.html - [similar]
- while let - Rust By Example 日本語版 7544
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
トに失敗した場合、ループを脱出 _ => { break; } // ^ Why should this be required? There must be a better wa...
- https://man.plustar.jp/rust/example/flow_control/while_let.html - [similar]
- リテラルとオペレータ - Rust By Example 日本語版 7544
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
2); // TODO ^ Try changing `1i32` to `1u32` to see why the type is important // TODO ^ 型が重要であること...
- https://man.plustar.jp/rust/example/primitives/literals.html - [similar]
- Rust By Example 日本語版 7472
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
2); // TODO ^ Try changing `1i32` to `1u32` to see why the type is important // TODO ^ 型が重要であること...
ither implements nor derives PartialEq. // That is why comparing Foo::Bar == a fails below. enum Foo {Bar...
トに失敗した場合、ループを脱出 _ => { break; } // ^ Why should this be required? There must be a better wa...
- https://man.plustar.jp/rust/example/print.html - [similar]
PREV
1
NEXT