検索

phrase: max: clip:
target: order:
Results of 1 - 7 of about 7 for public (0.018 sec.)
プライベートとパブリック - Rust By Example 日本語版 12904
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... parent or ancestor module pub(in crate::my_mod) fn public_function_in_my_mod() { print!("called `my_mod::nes ... ted::public_function_in_my_mod()`, that\n> "); public_function ... h is the same as leaving them private pub(self) fn public_function_in_nested() { println!("called `my_mod::n ... ested::public_function_in_nested()`"); } // Functions declared u ...
https://man.plustar.jp/rust/example/mod/visibility.html - [similar]
構造体の場合 - Rust By Example 日本語版 10687
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... カプセル化)を達成するための機能です。 mod my { // A public struct with a public field of generic type `T` // ... 造体 pub struct OpenBox<T> { pub contents: T, } // A public struct with a private field of generic type `T` // ... ox<T> { contents: T, } impl<T> ClosedBox<T> { // A public constructor method // パブリックなコンストラクタメ ... edBox { contents: contents, } } } } fn main() { // Public structs with public fields can be constructed as u ...
https://man.plustar.jp/rust/example/mod/struct_visibility.html - [similar]
クレート - Rust By Example 日本語版 7997
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 前は「rary」である。 #![crate_name = "rary"] pub fn public_function() { println!("called rary's `public_funct ...
https://man.plustar.jp/rust/example/attribute/crate.html - [similar]
Creating a Library - Rust By Example 日本語版 7997
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... クレートにリンクする方法を見ていきましょう。 pub fn public_function() { println!("called rary's `public_funct ...
https://man.plustar.jp/rust/example/crates/lib.html - [similar]
Using a Library - Rust By Example 日本語版 7997
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... for Rust 2015 edition or earlier fn main() { rary::public_function(); // Error! `private_function` is privat ... rlib --edition=2018 && ./executable called rary's `public_function()` called rary's `indirect_access()`, tha ...
https://man.plustar.jp/rust/example/crates/using_lib.html - [similar]
Integration testing - Rust By Example 日本語版 7997
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... tests are external to your crate and use only its public interface in the same way any other code would. Th ... between integration tests is making a module with public functions, importing and using it within tests. Fi ...
https://man.plustar.jp/rust/example/testing/integration_testing.html - [similar]
ファイルの階層構造 - Rust By Example 日本語版 7942
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... In my/inaccessible.rs : #[allow(dead_code)] pub fn public_function() { println!("called `my::inaccessible::p ...
https://man.plustar.jp/rust/example/mod/split.html - [similar]
PREV 1 NEXT