検索
Results of 31 - 39 of about 39 for have (0.047 sec.)
- ミュータビリティ - Rust By Example 日本語版 7095
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
kを作成 let immutabook = Book { // string literals have type `&'static str` // 「"」で囲まれた部分は`&'sta...
- https://man.plustar.jp/rust/example/scope/borrow/mut.html - [similar]
- 明示的アノテーション - Rust By Example 日本語版 7095
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
/ `print_refs` takes two references to `i32` which have different // lifetimes `'a` and `'b`. These two li...
- https://man.plustar.jp/rust/example/scope/lifetime/explicit.html - [similar]
- ベクタ型 - Rust By Example 日本語版 7095
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
s.iter().enumerate() { println!("In position {} we have value {}", i, x); } // Thanks to `iter_mut`, mutab...
- https://man.plustar.jp/rust/example/std/vec.html - [similar]
- チャネル - Rust By Example 日本語版 7095
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
static NTHREADS: i32 = 3; fn main() { // Channels have two endpoints: the `Sender<T>` and the `Receiver<T...
- https://man.plustar.jp/rust/example/std_misc/channels.html - [similar]
- パイプ - Rust By Example 日本語版 7095
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
ldStdin>`, but since we know this instance // must have one, we can directly `unwrap` it. // `stdin`は`Opt...
- https://man.plustar.jp/rust/example/std_misc/process/pipe.html - [similar]
- Testcase: map-reduce - Rust By Example 日本語版 7095
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
he '-> u32' from // the closure itself so we could have left that out. // // TODO: try removing the 'move'...
- https://man.plustar.jp/rust/example/std_misc/threads/testcase_mapreduce.html - [similar]
- Documentation testing - Rust By Example 日本語版 7095
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
. Code blocks start with /// triple backquotes and have implicit `fn main()` inside /// and `extern crate...
- https://man.plustar.jp/rust/example/testing/doc_testing.html - [similar]
- Unit testing - Rust By Example 日本語版 7095
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
ber.powf(0.5)) } else { Err("negative floats don't have square roots".to_owned()) } } #[cfg(test)] mod tes...
- https://man.plustar.jp/rust/example/testing/unit_testing.html - [similar]
- impl Trait - Rust By Example 日本語版 7095
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
map and filter easier. Because closure types don't have names, you can't write out an explicit return type...
- https://man.plustar.jp/rust/example/trait/impl_trait.html - [similar]