検索

phrase: max: clip:
target: order:
Results of 1 - 8 of about 8 for module (0.022 sec.)
プライベートとパブリック - Rust By Example 日本語版 13375
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... プからアクセスすることができるようになります。 // A module named `my_mod` // `my_mod`という名称のモジュール m ... od my_mod { // Items in modules default to private visibility. // モジュール内の要 ... `"); } // Items can access other items in the same module, // even when private. // モジュール内からならば、 ... ct_access()`, that\n> "); private_function(); } // Modules can also be nested pub mod nested { pub fn functi ...
https://man.plustar.jp/rust/example/mod/visibility.html - [similar]
Integration testing - Rust By Example 日本語版 9651
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 語版 Integration testing Unit tests are testing one module in isolation at a time: they're small and can test ... ng some code between integration tests is making a module with public functions, importing and using it with ... e will do. extern crate adder; // importing common module. mod common; #[test] fn test_add() { // using comm ... ommon::setup(); assert_eq!(adder::add(3, 2), 5); } Modules with common code follow the ordinary modules rule ...
https://man.plustar.jp/rust/example/testing/integration_testing.html - [similar]
Using a Library - Rust By Example 日本語版 9181
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ag. All of its items will then be imported under a module named the same as the library. This module general ... ly behaves the same way as any other module. // extern crate rary; // May be required for Rust ...
https://man.plustar.jp/rust/example/crates/using_lib.html - [similar]
super と self - Rust By Example 日本語版 9073
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... n> "); // The `self` keyword refers to the current module scope - in this case `my`. // Calling `self::funct ... ion(); // We can also use `self` to access another module inside `my`: // `my`以下の別のモジュールを呼び出す ... yword refers to the parent scope (outside the `my` module). // `super`は親スコープ(`my`の外側)を参照する。 ...
https://man.plustar.jp/rust/example/mod/super.html - [similar]
テストケース: リスト - Rust By Example 日本語版 7790
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 単に実装できます。 use std::fmt; // Import the `fmt` module. // Define a structure named `List` containing a ` ...
https://man.plustar.jp/rust/example/hello/print/print_display/testcase_list.html - [similar]
ディスプレイ - Rust By Example 日本語版 7790
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... used)] fn main() { // Import (via `use`) the `fmt` module to make it available. // (`use`を使用し、)`fmt`モ ...
https://man.plustar.jp/rust/example/hello/print/print_display.html - [similar]
ファイルの階層構造 - Rust By Example 日本語版 7790
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... y/mod.rs` and will // insert its contents inside a module named `my` under this scope // このように宣言すると ... les and insert them here under their respective // modules // 同様に`mod inaccessible`、`mod nested`によって ...
https://man.plustar.jp/rust/example/mod/split.html - [similar]
Rust By Example 日本語版 7555
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... used)] fn main() { // Import (via `use`) the `fmt` module to make it available. // (`use`を使用し、)`fmt`モ ... 単に実装できます。 use std::fmt; // Import the `fmt` module. // Define a structure named `List` containing a ` ...
https://man.plustar.jp/rust/example/print.html - [similar]
PREV 1 NEXT