検索

phrase: max: clip:
target: order:
Results of 21 - 30 of about 106 for use (0.055 sec.)
モジュールを複数のファイルに分割する - Rust 日本語版 6985
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... る 7.3. モジュールツリーの要素を示すためのパス 7.4. useキーワードでパスをスコープに持ち込む 7.5. モジュール ... ing 7-21 のコードを持つように変更して、 front_of_house モジュールをそれ専用のファイル src/front_of_house. ... まく行きます。 ファイル名: src/lib.rs mod front_of_house; pub use crate::front_of_house::hosting; pub fn ea ... ing::add_to_waitlist(); } Listing 7-21: front_of_house モジュールを宣言する。その中身は src/front_of_hous ...
https://man.plustar.jp/rust/book/ch07-05-separating-modules-into-different-files... - [similar]
RefCell<T>と内部可変性パターン - Rust 日本語版 6857
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... る 7.3. モジュールツリーの要素を示すためのパス 7.4. useキーワードでパスをスコープに持ち込む 7.5. モジュール ... ドを示しています: ファイル名: src/lib.rs #![allow(unused)] fn main() { pub trait Messenger { fn send(&self ... てしまいました self.messenger.send("Warning: You've used up over 75% of your quota!"); } else if percentag ... いました self.messenger.send("Urgent warning: You've used up over 90% of your quota!"); } else if percentag ...
https://man.plustar.jp/rust/book/ch15-05-interior-mutability.html - [similar]
コマンドライン引数を受け付ける - Rust 日本語版 6793
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... る 7.3. モジュールツリーの要素を示すためのパス 7.4. useキーワードでパスをスコープに持ち込む 7.5. モジュール ... タとして集結させてください。 ファイル名: src/main.rs use std::env; fn main() { let args: Vec<String> = env: ... タに集結させ、出力する まず、 std::env モジュールを use 文でスコープに導入したので、 args 関数が使用できま ... から別の関数も容易に使用することができます。また、 use std::env::args を追記し、関数を args とするだけで呼 ...
https://man.plustar.jp/rust/book/ch12-01-accepting-command-line-arguments.html - [similar]
高度なトレイト - Rust 日本語版 6524
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... る 7.3. モジュールツリーの要素を示すためのパス 7.4. useキーワードでパスをスコープに持ち込む 7.5. モジュール ... 示したようなものであることに触れました。 #![allow(unused)] fn main() { pub trait Iterator { type Item; fn ... トをジェネリクスで定義しないのでしょうか? #![allow(unused)] fn main() { pub trait Iterator<T> { fn next(&mu ... ことでこれを行なっています。 ファイル名: src/main.rs use std::ops::Add; #[derive(Debug, PartialEq)] struct ...
https://man.plustar.jp/rust/book/ch19-03-advanced-traits.html - [similar]
トレイト:共通の振る舞いを定義する - Rust 日本語版 6460
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... る 7.3. モジュールツリーの要素を示すためのパス 7.4. useキーワードでパスをスコープに持ち込む 7.5. モジュール ... を表示しています。 ファイル名: src/lib.rs #![allow(unused)] fn main() { pub trait Summary { fn summarize(&s ... e を定義します。 ファイル名: src/lib.rs #![allow(unused)] fn main() { pub trait Summary { fn summarize(&s ... .author, self.location) } } pub struct Tweet { pub username: String, pub content: String, pub reply: bool ...
https://man.plustar.jp/rust/book/ch10-02-traits.html - [similar]
Cargoのワークスペース - Rust 日本語版 6396
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... る 7.3. モジュールツリーの要素を示すためのパス 7.4. useキーワードでパスをスコープに持ち込む 7.5. モジュール ... ましょう: ファイル名: add-one/src/lib.rs #![allow(unused)] fn main() { pub fn add_one(x: i32) -> i32 { x + ... g adder v0.1.0 (file:///projects/add/adder) error: use of unstable library feature 'rand': use `rand` fro ... ましょう: ファイル名: add-one/src/lib.rs #![allow(unused)] fn main() { pub fn add_one(x: i32) -> i32 { x + ...
https://man.plustar.jp/rust/book/ch14-03-cargo-workspaces.html - [similar]
付録A:キーワード - Rust 日本語版 6332
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... る 7.3. モジュールツリーの要素を示すためのパス 7.4. useキーワードでパスをスコープに持ち込む 7.5. モジュール ... なキャストの実行、要素を含む特定のトレイトの明確化、 use や extern crate 文の要素名を変更する async - 現在の ... e - unsafeなコード、関数、トレイト、実装に言及する use - スコープにシンボルを持ち込む where - 型を制限する ...
https://man.plustar.jp/rust/book/appendix-01-keywords.html - [similar]
Derefトレイトでスマートポインタを普通の参照のように扱う - Rust 日本語版 6332
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... る 7.3. モジュールツリーの要素を示すためのパス 7.4. useキーワードでパスをスコープに持ち込む 7.5. モジュール ... 定義しています。 ファイル名: src/main.rs #![allow(unused)] fn main() { struct MyBox<T>(T); impl<T> MyBox<T ... 含まれています。 ファイル名: src/main.rs #![allow(unused)] fn main() { use std::ops::Deref; struct MyBox<T ... 義を示しています: ファイル名: src/main.rs #![allow(unused)] fn main() { fn hello(name: &str) { println!("He ...
https://man.plustar.jp/rust/book/ch15-02-deref.html - [similar]
モジュールツリーの要素を示すためのパス - Rust 日本語版 6255
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... る 7.3. モジュールツリーの要素を示すためのパス 7.4. useキーワードでパスをスコープに持ち込む 7.5. モジュール ... に説明します。 ファイル名: src/lib.rs mod front_of_house { mod hosting { fn add_to_waitlist() {} } } pub fn ... ) { // Absolute path // 絶対パス crate::front_of_house::hosting::add_to_waitlist(); // Relative path // 相 ... 対パス front_of_house::hosting::add_to_waitlist(); } Listing 7-3: add_to ...
https://man.plustar.jp/rust/book/ch07-03-paths-for-referring-to-an-item-in-the-m... - [similar]
テストの実行のされ方を制御する - Rust 日本語版 6191
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... る 7.3. モジュールツリーの要素を示すためのパス 7.4. useキーワードでパスをスコープに持ち込む 7.5. モジュール ... るテスト1つです。 ファイル名: src/lib.rs #![allow(unused)] fn main() { fn prints_and_returns_10(a: i32) -> ... t the value {}", a); 10 } #[cfg(test)] mod tests { use super::*; #[test] fn this_test_will_pass() { let v ... ストを選択します。 ファイル名: src/lib.rs #![allow(unused)] fn main() { pub fn add_two(a: i32) -> i32 { a + ...
https://man.plustar.jp/rust/book/ch11-02-running-tests.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 NEXT