検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 193 for Using (0.024 sec.)
Using a Library - Rust By Example 日本語版 10354
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 層構造 11. クレート ❱ 11.1. Creating a Library 11.2. Using a Library 12. Cargo ❱ 12.1. Dependencies 12.2. Con ... fault) Rust Coal Navy Ayu Rust By Example 日本語版 Using a Library To link a crate to this new library you ... rary's `private_function()` 関連キーワード: 関数 , Using , Result , Rust , By , Example , a , function , ra ...
https://man.plustar.jp/rust/example/crates/using_lib.html - [similar]
Documentation testing - Rust By Example 日本語版 9702
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 層構造 11. クレート ❱ 11.1. Creating a Library 11.2. Using a Library 12. Cargo ❱ 12.1. Dependencies 12.2. Con ... s one of the most important guidelines . It allows using examples from docs as complete code snippets. But ... main . Sounds complicated? Here's an example: /// Using hidden `try_main` in doc tests. /// /// ``` /// # ...
https://man.plustar.jp/rust/example/testing/doc_testing.html - [similar]
impl Trait - Rust By Example 日本語版 9365
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 層構造 11. クレート ❱ 11.1. Creating a Library 11.2. Using a Library 12. Cargo ❱ 12.1. Dependencies 12.2. Con ... ic type, you can simplify the function declaration using impl Trait as the type of the argument. For exampl ... lect all lines into a Vec<Vec<String>> } Note that using impl Trait as an argument type means that you cann ... rator that uses map or filter closures! This makes using map and filter easier. Because closure types don't ...
https://man.plustar.jp/rust/example/trait/impl_trait.html - [similar]
イテレータ - Rust By Example 日本語版 9365
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 層構造 11. クレート ❱ 11.1. Creating a Library 11.2. Using a Library 12. Cargo ❱ 12.1. Dependencies 12.2. Con ... rator for Fibonacci { // We can refer to this type using Self::Item type Item = u32; // Here, we define the ... sequence using `.curr` and `.next`. // The return type is `Option ... では`i`)に束縛する。 println!("Iterate through 0..3 using `for`"); for i in 0..3 { println!("> {}", i); } // ...
https://man.plustar.jp/rust/example/trait/iter.html - [similar]
プライベートとパブリック - Rust By Example 日本語版 9039
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 層構造 11. クレート ❱ 11.1. Creating a Library 11.2. Using a Library 12. Cargo ❱ 12.1. Dependencies 12.2. Con ... ed::private_function()`"); } // Functions declared using `pub(in path)` syntax are only visible // within t ... blic_function_in_nested(); } // Functions declared using `pub(self)` syntax are only visible within // the ... c_function_in_nested()`"); } // Functions declared using `pub(super)` syntax are only visible within // the ...
https://man.plustar.jp/rust/example/mod/visibility.html - [similar]
要素の捕捉 - Rust By Example 日本語版 8713
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 層構造 11. クレート ❱ 11.1. Creating a Library 11.2. Using a Library 12. Cargo ❱ 12.1. Dependencies 12.2. Con ... rintln!("`color`: {}", color); // Call the closure using the borrow. // 借用を行ったクロージャをコールする。 ... tln!("`count`: {}", count); }; // Call the closure using a mutable borrow. // クロージャを実行 inc(); // Th ... e error // because borrow checker doesn't allow re-using variable after it // has been moved. // ^ 上の行の ...
https://man.plustar.jp/rust/example/fn/closures/capture.html - [similar]
Playpen - Rust By Example 日本語版 8713
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 層構造 11. クレート ❱ 11.1. Creating a Library 11.2. Using a Library 12. Cargo ❱ 12.1. Dependencies 12.2. Con ... t is now commonly referred to as Rust Playground . Using it with mdbook In mdbook , you can make code examp ... rust,editable,ignore //...place your code here ``` Using it with docs You may have noticed in some of the o ...
https://man.plustar.jp/rust/example/meta/playpen.html - [similar]
Rust By Example 日本語版 8713
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 層構造 11. クレート ❱ 11.1. Creating a Library 11.2. Using a Library 12. Cargo ❱ 12.1. Dependencies 12.2. Con ... nded, but you may still see it in older Rust code. Using try! looks like this: try!(write!(f, "{}", value)) ... ::Formatter) -> fmt::Result { // Extract the value using tuple indexing, // and create a reference to `vec` ... , true); // Values can be extracted from the tuple using tuple indexing // インデックスを用いて、タプル内の ...
https://man.plustar.jp/rust/example/print.html - [similar]
Integration testing - Rust By Example 日本語版 8387
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 層構造 11. クレート ❱ 11.1. Creating a Library 11.2. Using a Library 12. Cargo ❱ 12.1. Dependencies 12.2. Con ... king a module with public functions, importing and using it within tests. File tests/common.rs : pub fn set ... mon module. mod common; #[test] fn test_add() { // using common code. common::setup(); assert_eq!(adder::ad ...
https://man.plustar.jp/rust/example/testing/integration_testing.html - [similar]
Option と unwrap - Rust By Example 日本語版 8061
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 層構造 11. クレート ❱ 11.1. Creating a Library 11.2. Using a Library 12. Cargo ❱ 12.1. Dependencies 12.2. Con ... y drink well. // All drinks are handled explicitly using `match`. // 大人は経験豊富なので、大体どんな飲み物 ... ugary drinks. // All drinks are handled implicitly using `unwrap`. // 他の人たちは甘い飲み物を飲む前に`pani ...
https://man.plustar.jp/rust/example/error/option_unwrap.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 NEXT