検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 34 for type (0.031 sec.)
付録B:演算子と記号 - Rust 日本語版 16281
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... り演算後に代入 RemAssign & &expr , &mut expr 借用 & &type , &mut type , &'a type , &'a mut type 借用されたポ ... * expr * expr 掛け算 Mul * *expr 参照外し * *const type , *mut type 生ポインタ *= var *= expr 掛け算後に代 ... var -= expr 引き算後に代入 SubAssign -> fn(...) -> type , |...| -> type 関数とクロージャの戻り値型 . expr. ... 構造体リテラル更新記法 .. variant(x, ..) , struct_type { x, .. } 「残り全部」パターン束縛 ... expr...expr ...
https://man.plustar.jp/rust/book/appendix-02-operators.html - [similar]
高度な型 - Rust 日本語版 10385
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... Rustでは、既存の型に別の名前を与える 型エイリアス (type alias: 型別名)を宣言する能力が提供されています。 こ ... のために、 type キーワードを使用します。例えば、以下のように i32 に ... エイリアスを作れます。 #![allow(unused)] fn main() { type Kilometers = i32; } これで、別名の Kilometers は i ... 値と同等に扱われます。 #![allow(unused)] fn main() { type Kilometers = i32; let x: i32 = 5; let y: Kilometer ...
https://man.plustar.jp/rust/book/ch19-04-advanced-types.html - [similar]
数当てゲームのプログラミング - Rust 日本語版 8643
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... //projects/guessing_game) error[E0308]: mismatched types (型が合いません) --> src/main.rs:22:21 | 22 | mat ... String` found reference `&{integer}` error[E0283]: type annotations needed for `{integer}` --> src/main.rs ... ge(1..101); | ------------- ^^^^^^^^^ cannot infer type for type `{integer}` | | | consider giving `secret ... _number` a type | = note: multiple `impl`s satisfying `{integer}: ...
https://man.plustar.jp/rust/book/ch02-00-guessing-game-tutorial.html - [similar]
The Rust Programming Language 日本語版 8643
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... //projects/guessing_game) error[E0308]: mismatched types (型が合いません) --> src/main.rs:22:21 | 22 | mat ... String` found reference `&{integer}` error[E0283]: type annotations needed for `{integer}` --> src/main.rs ... ge(1..101); | ------------- ^^^^^^^^^ cannot infer type for type `{integer}` | | | consider giving `secret ... _number` a type | = note: multiple `impl`s satisfying `{integer}: ...
https://man.plustar.jp/rust/book/print.html - [similar]
高度なトレイト - Rust 日本語版 8547
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... #![allow(unused)] fn main() { pub trait Iterator { type Item; fn next(&mut self) -> Option<Self::Item>; } ... ファイル名: src/lib.rs impl Iterator for Counter { type Item = u32; fn next(&mut self) -> Option<Self::Ite ... 記法は、 ジェネリックな型を宣言する際に <PlaceholderType=ConcreteType> です。 このテクニックが有用になる場面 ... uct Point { x: i32, y: i32, } impl Add for Point { type Output = Point; fn add(self, other: Point) -> Poin ...
https://man.plustar.jp/rust/book/ch19-03-advanced-traits.html - [similar]
一連の要素をイテレータで処理する - Rust 日本語版 8452
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... #![allow(unused)] fn main() { pub trait Iterator { type Item; fn next(&mut self) -> Option<Self::Item>; // ... 義は新しい記法を使用していることに注目してください: type Item と Self::Item で、 これらはこのトレイトとの 関 ... 連型 (associated type)を定義しています。関連型についての詳細は、第19章で ... ounter { count: u32, } impl Iterator for Counter { type Item = u32; fn next(&mut self) -> Option<Self::Ite ...
https://man.plustar.jp/rust/book/ch13-02-iterators.html - [similar]
Derefトレイトでスマートポインタを普通の参照のように扱う - Rust 日本語版 8356
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... が結果として出るコンパイルエラーです。 error[E0614]: type `MyBox<{integer}>` cannot be dereferenced (エラー: ... ; struct MyBox<T>(T); impl<T> Deref for MyBox<T> { type Target = T; fn deref(&self) -> &T { &self.0 } } } ... リスト15-10: MyBox<T> に Deref を実装する type Target = T; という記法は、 Deref トレイトが使用する ... Box<T> { MyBox(x) } } impl<T> Deref for MyBox<T> { type Target = T; fn deref(&self) -> &T { &self.0 } } fn ...
https://man.plustar.jp/rust/book/ch15-02-deref.html - [similar]
シングルスレッドサーバをマルチスレッド化する - Rust 日本語版 8356
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... error[E0433]: failed to resolve. Use of undeclared type or module `ThreadPool` (エラー: 解決に失敗しました ... dPool::new(4); | ^^^^^^^^^^^^^^^ Use of undeclared type or module `ThreadPool` error: aborting due to prev ... function or associated item named `new` found for type `hello::ThreadPool` in the current scope (エラー: ... error[E0599]: no method named `execute` found for type `hello::ThreadPool` in the current scope --> src/b ...
https://man.plustar.jp/rust/book/ch20-02-multithreaded.html - [similar]
正常なシャットダウンと片付け - Rust 日本語版 8260
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... ます: error[E0599]: no method named `join` found for type `std::option::Option<std::thread::JoinHandle<()>>` ... d.join().unwrap(); | ^^^^ error[E0308]: mismatched types --> src/lib.rs:89:13 | 89 | thread, | ^^^^^^ | | ... andle` | help: try using a variant of the expected type: `Some(thread)` | = note: expected type `std::opti ... on::Option<std::thread::JoinHandle<()>>` found type `std::thread::JoinHandle<_>` 2番目のエラーを扱いま ...
https://man.plustar.jp/rust/book/ch20-03-graceful-shutdown-and-cleanup.html - [similar]
状態共有並行性 - Rust 日本語版 8164
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... r move | = note: move occurs because `counter` has type `std::sync::Mutex<i32>`, which does not implement ... r move | = note: move occurs because `counter` has type `std::sync::Mutex<i32>`, which does not implement ... r move | = note: move occurs because `counter` has type `std::sync::Mutex<i32>`, which does not implement ... r move | = note: move occurs because `counter` has type `std::sync::Mutex<i32>`, which does not implement ...
https://man.plustar.jp/rust/book/ch16-03-shared-state.html - [similar]
PREV 1 2 3 4 NEXT