検索
Results of 1 - 7 of about 7 for examples (0.016 sec.)
- Rc - Rust By Example 日本語版 13159
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
nts the count. use std::rc::Rc; fn main() { let rc_examples = "Rc examples".to_string(); { println!("--- rc_a...
s created ---"); let rc_a: Rc<String> = Rc::new(rc_examples); println!("Reference Count of rc_a: {}", Rc::stro...
c_a is dropped out of scope ---"); } // Error! `rc_examples` already moved into `rc_a` // And when `rc_a` is d...
ropped, `rc_examples` is dropped together // println!("rc_examples: {}"...
- https://man.plustar.jp/rust/example/std/rc.html - [similar]
- Documentation testing - Rust By Example 日本語版 10069
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
b } /// Usually doc comments may include sections "Examples", "Panics" and "Failures". /// /// The next functi...
on divides two numbers. /// /// # Examples /// /// ``` /// let result = doccomments::div(10,...
main purpose of documentation tests is to serve as examples that exercise the functionality, which is one of t...
he most important guidelines . It allows using examples from docs as complete code snippets. But using ? m...
- https://man.plustar.jp/rust/example/testing/doc_testing.html - [similar]
- ドキュメンテーション - Rust By Example 日本語版 8597
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
` - `person`の名前を表す文字列のスライス /// /// # Examples /// /// ``` /// // You can have rust code between...
libdoc.rlib" doc.rs Doc attributes Below are a few examples of the most common #[doc] attributes used with rus...
- https://man.plustar.jp/rust/example/meta/doc.html - [similar]
- Playpen - Rust By Example 日本語版 8015
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
Using it with mdbook In mdbook , you can make code examples playable and editable. fn main() { println!("Hello...
- https://man.plustar.jp/rust/example/meta/playpen.html - [similar]
- Dev-dependencies - Rust By Example 日本語版 8015
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
there is a need to have dependencies for tests (or examples, or benchmarks) only. Such dependencies are added...
- https://man.plustar.jp/rust/example/testing/dev_dependencies.html - [similar]
- スタティックライフタイム - Rust By Example 日本語版 7852
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
ce for confusion when learning Rust. Here are some examples for each situation: Reference lifetime As a refere...
- https://man.plustar.jp/rust/example/scope/lifetime/static_lifetime.html - [similar]
- Unit testing - Rust By Example 日本語版 7852
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
red out Tests and ? None of the previous unit test examples had a return type. But in Rust 2018, your unit tes...
- https://man.plustar.jp/rust/example/testing/unit_testing.html - [similar]
PREV
1
NEXT