検索
Results of 1 - 3 of about 3 for ln (0.002 sec.)
- ? - Rust By Example 日本語版 10826
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...メンテーション 24.2. Playpen Light (default) Rust Coal Navy Ayu Rust By Example 日本語版 ? Chaining result...::NegativeSquareRoot) } else { Ok(x.sqrt()) } } fn ln(x: f64) -> MathResult { if x <= 0.0 { Err(MathErro...r::NonPositiveLogarithm) } else { Ok(x.ln()) } } // Intermediate function fn op_(x: f64, y:...will be `return`ed let ratio = div(x, y)?; // if `ln` "fails", then `NonPositiveLogarithm` will be `ret... - https://man.plustar.jp/rust/example/std/result/question_mark.html - [similar]
- Result - Rust By Example 日本語版 10380
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...メンテーション 24.2. Playpen Light (default) Rust Coal Navy Ayu Rust By Example 日本語版 Result これまでの...gativeSquareRoot) } else { Ok(x.sqrt()) } } pub fn ln(x: f64) -> MathResult { if x <= 0.0 { Err(MathErro...r::NonPositiveLogarithm) } else { Ok(x.ln()) } } } // `op(x, y)` === `sqrt(ln(x / y))` fn op...> panic!("{:?}", why), Ok(ratio) => match checked::ln(ratio) { Err(why) => panic!("{:?}", why), Ok(ln) =... - https://man.plustar.jp/rust/example/std/result.html - [similar]
- ファイルシステムとのやり取り - Rust By Example 日本語版 6678
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...メンテーション 24.2. Playpen Light (default) Rust Coal Navy Ayu Rust By Example 日本語版 ファイルシステムと...=> Ok(()), Err(e) => Err(e), } } fn main() { println!("`mkdir a`"); // Create a directory, returns `io:...<()>` match fs::create_dir("a") { Err(why) => println!("! {:?}", why.kind()), Ok(_) => {}, } println!("`...&Path::new("a/b.txt")).unwrap_or_else(|why| { println!("! {:?}", why.kind()); }); println!("`mkdir -p a/... - https://man.plustar.jp/rust/example/std_misc/fs.html - [similar]
PREV
1
NEXT