サクサク読めて、
アプリ限定の機能も多数!
アプリで開く
●はてなブックマークって?
●アプリ・拡張の紹介
●ユーザー登録
●ログイン
●ログアウト
トップへ戻る
総合
●人気
●新着
●
IT
●
最新ガジェット
●
自然科学
●
経済・金融
●
おもしろ
●
マンガ
●
ゲーム
●
はてなブログ︵総合︶
一般
●人気
●新着
●
社会ニュース
●
地域
●
国際
●
天気
●
グルメ
●
映画・音楽
●
スポーツ
●
はてな匿名ダイアリー
世の中
●人気
●新着
●
新型コロナウイルス
●
働き方
●
生き方
●
地域
●
医療・ヘルス
●
教育
●
はてな匿名ダイアリー
政治と経済
●人気
●新着
●
政治
●
経済・金融
●
企業
●
仕事・就職
●
マーケット
●
国際
●
はてなブログ︵政治と経済︶
暮らし
●人気
●新着
●
カルチャー・ライフスタイル
●
ファッション
●
運動・エクササイズ
●
結婚・子育て
●
住まい
●
グルメ
●
お金
●
はてなブログ︵暮らし︶
●
掃除・整理整頓
●
雑貨
●
買ってよかったもの
●
旅行
●
アウトドア
●
趣味
学び
●人気
●新着
●
人文科学
●
社会科学
●
自然科学
●
語学
●
ビジネス・経営学
●
デザイン
●
法律
●
本・書評
●
将棋・囲碁
●
はてなブログ︵学び︶
テクノロジー
●人気
●新着
●
IT
●
セキュリティ技術
●
はてなブログ︵テクノロジー︶
●
AI・機械学習
●
プログラミング
●
エンジニア
おもしろ
●人気
●新着
●
まとめ
●
ネタ
●
おもしろ
●
これはすごい
●
かわいい
●
雑学
●
癒やし
エンタメ
●人気
●新着
●
スポーツ
●
映画
●
音楽
●
アイドル
●
芸能
●
お笑い
●
サッカー
●
話題の動画
アニメとゲーム
●人気
●新着
●
マンガ
●
Webマンガ
●
ゲーム
●
任天堂
●
PlayStation
●
アニメ
●
バーチャルYouTuber
●
オタクカルチャー
●
おすすめ
Wikipedia
﹃Learn Rust﹄
●
人気
●
新着
●
すべて
3users
doc.rust-lang.org
Introduction This book is the primary reference for the Rust programming language. It provides three kinds of material: Chapters that informally describe each language construct and their use. Chapters that informally describe the memory model, concurrency model, runtime services, linkage model, and debugging facilities. Appendix chapters providing rationale and references to languages that influe
●
テクノロジー
●2021/06/11 18:29
●reference
9users
doc.rust-lang.org
The Rust Programming Language by Steve Klabnik and Carol Nichols, with contributions from the Rust Community This version of the text assumes you’re using Rust 1.76.0 (released 2024-02-08) or later. See the “Installation” section of Chapter 1 to install or update Rust. The HTML format is available online at https://doc.rust-lang.org/stable/book/ and offline with installations of Rust made with rus
●
テクノロジー
●2020/01/24 23:35
●rust
●programming
●本
●あとで読む
3users
doc.rust-lang.org
dyn is a prefix of a trait object’s type. The dyn keyword is used to highlight that calls to methods on the associated Trait are dynamically dispatched. To use the trait this way, it must be ‘object safe’. Unlike generic parameters or impl Trait, the compiler does not know the concrete type that is being passed. That is, the type has been erased. As such, a dyn Trait reference contains two pointer
●
テクノロジー
●2019/10/16 23:48
3users
doc.rust-lang.org
Collection types. Rust’s standard collection library provides efficient implementations of the most common general purpose programming data structures. By using the standard implementations, it should be possible for two libraries to communicate without significant data conversion. To get this out of the way: you should probably just use Vec or HashMap. These two collections cover most use cases f
●
テクノロジー
●2019/10/16 23:23
4users
doc.rust-lang.org
§The Rust Standard Library The Rust Standard Library is the foundation of portable Rust software, a set of minimal and battle-tested shared abstractions for the broader Rust ecosystem. It offers core types, like Vec<T> and Option<T>, library-defined operations on language primitives, standard macros, I/O and multithreading, among many other things. std is available to all Rust crates by default. T
●
テクノロジー
●2019/08/03 14:41
●Rust
9users
doc.rust-lang.org
Rust by Example Rust is a modern systems programming language focusing on safety, speed, and concurrency. It accomplishes these goals by being memory safe without using garbage collection. Rust by Example (RBE) is a collection of runnable examples that illustrate various Rust concepts and standard libraries. To get even more out of these examples, don't forget to install Rust locally and check out
●
テクノロジー
●2019/06/03 22:24
●Rust
3users
doc.rust-lang.org
The Cargo Book Cargo is the Rust package manager. Cargo downloads your Rust package’s dependencies, compiles your packages, makes distributable packages, and uploads them to crates.io, the Rust community’s package registry. You can contribute to this book on GitHub. Sections Getting Started To get started with Cargo, install Cargo (and Rust) and set up your first crate. Cargo Guide The guide will
●
テクノロジー
●2019/01/11 20:55
●cargo
●Rust
3users
doc.rust-lang.org
pub struct RwLock<T: ?Sized> { /* private fields */ }Expand description A reader-writer lock This type of lock allows a number of readers or at most one writer at any point in time. The write portion of this lock typically allows modification of the underlying data (exclusive access) and the read portion of this lock typically allows for read-only access (shared access). In comparison, a Mutex doe
●
テクノロジー
●2018/10/29 16:59
4users
doc.rust-lang.org
pub enum Option<T> { None, Some(T), }Expand description
●
テクノロジー
●2018/10/02 04:26
5users
doc.rust-lang.org
The Manifest Format The Cargo.toml file for each package is called its manifest. It is written in the TOML format. It contains metadata that is needed to compile the package. Checkout the cargo locate-project section for more detail on how cargo finds the manifest file. Every manifest file consists of the following sections: cargo-features — Unstable, nightly-only features. [package] — Defines a p
●
テクノロジー
●2018/09/10 23:38
5users
doc.rust-lang.org
Warning: This book is incomplete. Documenting everything and rewriting outdated parts take a while. See the issue tracker to check what's missing/outdated, and if there are any mistakes or ideas that haven't been reported, feel free to open a new issue there. The Dark Arts of Unsafe Rust THE KNOWLEDGE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
●
テクノロジー
●2018/08/07 21:33
●rust
●あとで読む
3users
doc.rust-lang.org
Rust by Example Rust is a modern systems programming language focusing on safety, speed, and concurrency. It accomplishes these goals by being memory safe without using garbage collection. Rust by Example (RBE) is a collection of runnable examples that illustrate various Rust concepts and standard libraries. To get even more out of these examples, don't forget to install Rust locally and check out
●
テクノロジー
●2018/06/30 07:26
●rust
●学習
●プログラミング
8users
doc.rust-lang.org
Rust by Example Rust is a modern systems programming language focusing on safety, speed, and concurrency. It accomplishes these goals by being memory safe without using garbage collection. Rust by Example (RBE) is a collection of runnable examples that illustrate various Rust concepts and standard libraries. To get even more out of these examples, don't forget to install Rust locally and check out
●
テクノロジー
●2018/06/21 15:57
●Rust
●Programming
6users
doc.rust-lang.org
The Cargo Book Cargo is the Rust package manager. Cargo downloads your Rust package’s dependencies, compiles your packages, makes distributable packages, and uploads them to crates.io, the Rust community’s package registry. You can contribute to this book on GitHub. Sections Getting Started To get started with Cargo, install Cargo (and Rust) and set up your first crate. Cargo Guide The guide will
●
テクノロジー
●2018/06/11 16:06
●Rust
4users
doc.rust-lang.org
Procedural Macros (and custom Derive) The first edition of the book is no longer distributed with Rust's documentation. If you came here via a link or web search, you may want to check out the current version of the book instead. If you have an internet connection, you can find a copy distributed with Rust 1.30.
●
テクノロジー
●2017/12/20 15:35
3users
doc.rust-lang.org
Ownership This guide is one of three presenting Rust’s ownership system. This is one of Rust’s most unique and compelling features, with which Rust developers should become quite acquainted. Ownership is how Rust achieves its largest goal, memory safety. There are a few distinct concepts, each with its own chapter: ownership, which you’re reading now borrowing, and their associated feature ‘refere
●
テクノロジー
●2017/12/03 03:40
5users
doc.rust-lang.org
Rust Inside Other Languages For our third project, we’re going to choose something that shows off one of Rust’s greatest strengths: a lack of a substantial runtime. As organizations grow, they increasingly rely on a multitude of programming languages. Different programming languages have different strengths and weaknesses, and a polyglot stack lets you use a particular language where its strengths
●
テクノロジー
●2017/07/31 09:59
●rust
●プログラミング
●あとで読む
9users
doc.rust-lang.org
Foreword The second edition of the book is no longer distributed with Rust's documentation. If you came here via a link or web search, you may want to check out the current version of the book instead. If you have an internet connection, you can find a copy distributed with Rust 1.30.
●
テクノロジー
●2017/07/18 15:20
●rust
●web
4users
doc.rust-lang.org
Foreword The second edition of the book is no longer distributed with Rust's documentation. If you came here via a link or web search, you may want to check out the current version of the book instead. If you have an internet connection, you can find a copy distributed with Rust 1.30.
●
テクノロジー
●2017/06/10 17:21
●rust
4users
doc.rust-lang.org
Platform Support Support for different platforms ("targets") are organized into three tiers, each with a different set of guarantees. For more information on the policies for targets at each tier, see the Target Tier Policy. Targets are identified by their "target triple" which is the string to inform the compiler what kind of output should be produced. Component availability is tracked here. Tier
●
テクノロジー
●2017/04/13 10:26
●rust
4users
doc.rust-lang.org
pub struct Cursor<T> { /* private fields */ }Expand description A Cursor wraps an in-memory buffer and provides it with a Seek implementation. Cursors are used with in-memory buffers, anything implementing AsRef<[u8]>, to allow them to implement Read and/or Write, allowing these buffers to be used anywhere you might use a reader or writer that does actual I/O. The standard library implements some
●
テクノロジー
●2017/03/28 08:45
●programming
●あとで読む
4users
doc.rust-lang.org
pub trait Iterator { type Item; Show 76 methods // Required method fn next(&mut self) -> Option<Self::Item>; // Provided methods fn next_chunk<const N: usize>( &mut self ) -> Result<[Self::Item; N], IntoIter<Self::Item, N>> where Self: Sized { ... } fn size_hint(&self) -> (usize, Option<usize>) { ... } fn count(self) -> usize where Self: Sized { ... } fn last(self) -> Option<Self::Item> where Self
●
テクノロジー
●2017/03/21 00:14
●あとで読む
3users
doc.rust-lang.org
pub trait Debug { // Required method fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>; }Expand description ? formatting. Debug should format the output in a programmer-facing, debugging context. Generally speaking, you should just derive a Debug implementation. When used with the alternate format specifier #?, the output is pretty-printed. For more information on formatters, see the modul
●
テクノロジー
●2017/03/17 14:22
3users
doc.rust-lang.org
Procedural Macros (and custom Derive) There is a new edition of the book and this is an old link. Procedural macros allow for all sorts of advanced metaprogramming in Rust. This chapter does not exist yet in the second edition. You can check out other resources that describe macros. In the current edition: Ch 19.06 Macros In the Rust Reference: Ch 3.2 — Procedural Macros The proc_macro crate docum
●
テクノロジー
●2017/02/28 00:43
5users
doc.rust-lang.org
pub struct PhantomData<T> where T: ?Sized;Expand description Zero-sized type used to mark things that “act like” they own a T. Adding a PhantomData<T> field to your type tells the compiler that your type acts as though it stores a value of type T, even though it doesn’t really. This information is used when computing certain safety properties. For a more in-depth explanation of how to use PhantomD
●
テクノロジー
●2016/07/23 15:43
●Rust
7users
doc.rust-lang.org
The Rust Reference has moved We’ve split up the reference into chapters. Please find it at its new home here.
●
テクノロジー
●2016/07/11 22:48
●プログラミング
●あとで読む
3users
doc.rust-lang.org
A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’. The type Arc<T> provides shared ownership of a value of type T, allocated in the heap. Invoking clone on Arc produces a new Arc instance, which points to the same allocation on the heap as the source Arc, while increasing a reference count. When the last Arc pointer to a given allocation is destroyed, the va
●
テクノロジー
●2016/06/20 09:46
5users
doc.rust-lang.org
The Rustonomicon The Dark Arts of Advanced and Unsafe Rust Programming Instead of the programs I had hoped for, there came only a shuddering blackness and ineffable loneliness; and I saw at last a fearful truth which no one had ever dared to breathe before — the unwhisperable secret of secrets — The fact that this language of stone and stridor is not a sentient perpetuation of Rust as London is of
●
テクノロジー
●2016/05/26 19:21
●rust
4users
doc.rust-lang.org
The Stack and the Heap There is a new edition of the book and this is an old link. Both the stack and the heap are parts of memory that is available to your code to use at runtime, but they are structured in different ways. The stack stores values in the order it gets them and removes the values in the opposite order. All data on the stack must take up a known, fixed size. For data with a size unk
●
テクノロジー
●2016/05/17 08:46
次のページ
このページはまだ
ブックマークされていません
このページを最初にブックマークしてみませんか?
﹃Learn Rust﹄の新着エントリーを見る
キーボードショートカット一覧
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く
●総合
●一般
●世の中
●政治と経済
●暮らし
●学び
●テクノロジー
●エンタメ
●アニメとゲーム
●おもしろ
●アプリ・拡張機能
●開発ブログ
●ヘルプ
●お問い合わせ
●ガイドライン
●利用規約
●プライバシーポリシー
●利用者情報の外部送信について
●ガイドライン
●利用規約
●プライバシーポリシー
●利用者情報の外部送信について
●公式アカウント
●ホットエントリー
●はてなブログ
●はてなブログPro
●人力検索はてな
●はてなブログ タグ
●はてなニュース
●ソレドコ
Copyright © 2005-2024 Hatena. All Rights Reserved.
設定を変更しましたx