検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 17 for function (0.027 sec.)
関数 - Rust 日本語版 15363
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... .rs fn main() { println!("Hello, world!"); another_function(); } fn another_function() { println!("Another fun ... この組を続けることで呼び出すことができます。 another_function 関数がプログラム内で定義されているので、 main 関数 ... 出すことができるわけです。 ソースコード中で another_function を main 関数の 後 に定義していることに注目してくだ ... ません。 どこかで定義されていることのみ気にします。 functions という名前の新しいバイナリ生成プロジェクトを始めて ...
https://man.plustar.jp/rust/book/ch03-03-how-functions-work.html - [similar]
Unsafe Rust - Rust 日本語版 9345
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... エラーになるでしょう: error[E0133]: call to unsafe function requires unsafe function or block (エラー: unsafe関 ... -> | 4 | dangerous(); | ^^^^^^^^^^^ call to unsafe function dangerous への呼び出しの周りに unsafe ブロックを挿 ... tern というキーワードがあり、これは、 FFI (Foreign Function Interface: 外部関数インターフェイス)の生成と使用を ... 関数を呼び出したばかり! println!("Just called a Rust function from C!"); } } この extern の使用法では、 unsafe は ...
https://man.plustar.jp/rust/book/ch19-01-unsafe-rust.html - [similar]
参照と借用 - Rust 日本語版 8500
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... g { | ^ expected lifetime parameter | = help: this function's return type contains a borrowed value, but there ... コードが問題になる理由に関する鍵を握っています: this function's return type contains a borrowed value, but there ...
https://man.plustar.jp/rust/book/ch04-02-references-and-borrowing.html - [similar]
モジュールツリーの要素を示すためのパス - Rust 日本語版 8345
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... v0.1.0 (file:///projects/restaurant) error[E0603]: function `add_to_waitlist` is private --> src/lib.rs:9:37 | ... add_to_waitlist(); | ^^^^^^^^^^^^^^^ error[E0603]: function `add_to_waitlist` is private --> src/lib.rs:12:30 ...
https://man.plustar.jp/rust/book/ch07-03-paths-for-referring-to-an-item-in-the-m... - [similar]
スレッドを使用してコードを同時に走らせる - Rust 日本語版 8345
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... ます: error[E0373]: closure may outlive the current function, but it borrows `v`, which is owned by the current ... function (エラー: クロージャは現在の関数よりも長生きするかも ...
https://man.plustar.jp/rust/book/ch16-01-threads.html - [similar]
シングルスレッドサーバをマルチスレッド化する - Rust 日本語版 8345
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... o v0.1.0 (file:///projects/hello) error[E0599]: no function or associated item named `new` found for type `hel ... | let pool = ThreadPool::new(4); | ^^^^^^^^^^^^^^^ function or associated item not found in `hello::ThreadPool ... ds in the pool. /// /// # Panics /// /// The `new` function will panic if the size is zero. pub fn new(size: u ...
https://man.plustar.jp/rust/book/ch20-02-multithreaded.html - [similar]
トレイト:共通の振る舞いを定義する - Rust 日本語版 8207
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... 文を用意しています。 なので、このように書く: fn some_function<T: Display + Clone, U: Clone + Debug>(t: &T, u: &U ... re 句を使い、このように書くことができます: fn some_function<T, U>(t: &T, u: &U) -> i32 where T: Display + Clon ...
https://man.plustar.jp/rust/book/ch10-02-traits.html - [similar]
ライフタイムで参照を検証する - Rust 日本語版 8207
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... | (ライフタイム引数があるべきです) | = help: this function's return type contains a borrowed value, but the s ... urns a value referencing data owned by the current function | `result` is borrowed here | (現在の関数に所有され ...
https://man.plustar.jp/rust/book/ch10-03-lifetime-syntax.html - [similar]
高度な関数とクロージャ - Rust 日本語版 8207
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... 32) -> i32 + 'static` = note: the return type of a function must have a statically known size エラーは、再度 S ...
https://man.plustar.jp/rust/book/ch19-05-advanced-functions-and-closures.html - [similar]
テスト駆動開発でライブラリの機能を開発する - Rust 日本語版 8069
The Rust Programming Language 日本語版 まえがき はじめに 1. 事始め 1.1. インストール 1.2. Hello, ... > { | ^ expected lifetime parameter | = help: this function's return type contains a borrowed value, but the s ...
https://man.plustar.jp/rust/book/ch12-04-testing-the-librarys-functionality.html - [similar]
PREV 1 2 NEXT