検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 52 for function (0.021 sec.)
プライベートとパブリック - Rust By Example 日本語版 13158
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 2.6.2. Iterator::find 9.3. 高階関数 9.4. Diverging functions 10. モジュール ❱ 10.1. プライベートとパブリック 1 ... ュール内の要素はデフォルトでプライベート fn private_function() { println!("called `my_mod::private_function()`" ... isibility. // `pub`を用いてパブリックに変更 pub fn function() { println!("called `my_mod::function()`"); } // ... d `my_mod::indirect_access()`, that\n> "); private_function(); } // Modules can also be nested pub mod nested ...
https://man.plustar.jp/rust/example/mod/visibility.html - [similar]
use宣言 - Rust By Example 日本語版 12650
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 2.6.2. Iterator::find 9.3. 高階関数 9.4. Diverging functions 10. モジュール ❱ 10.1. プライベートとパブリック 1 ... mmented out! use crate::deeply::nested::{ my_first_function, my_second_function, AndATraitType }; fn main() { ... my_first_function(); } as キーワードを使用することで、インポートを別 ... ドすることができます。 // Bind the `deeply::nested::function` path to `other_function`. // `deeply::nested::fun ...
https://man.plustar.jp/rust/example/mod/use.html - [similar]
super と self - Rust By Example 日本語版 11993
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 2.6.2. Iterator::find 9.3. 高階関数 9.4. Diverging functions 10. モジュール ❱ 10.1. プライベートとパブリック 1 ... なハードコーディングを避けるために使用できます。 fn function() { println!("called `function()`"); } mod cool { ... pub fn function() { println!("called `cool::function()`"); } } mod ... my { fn function() { println!("called `my::function()`"); } mod coo ...
https://man.plustar.jp/rust/example/mod/super.html - [similar]
ファイルの階層構造 - Rust By Example 日本語版 11246
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 2.6.2. Iterator::find 9.3. 高階関数 9.4. Diverging functions 10. モジュール ❱ 10.1. プライベートとパブリック 1 ... 名から使用することができるようにします。 mod my; fn function() { println!("called `function()`"); } fn main() { ... my::function(); function(); my::indirect_access(); my::nested:: ... できない。 mod inaccessible; pub mod nested; pub fn function() { println!("called `my::function()`"); } fn priv ...
https://man.plustar.jp/rust/example/mod/split.html - [similar]
impl Trait - Rust By Example 日本語版 8976
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 2.6.2. Iterator::find 9.3. 高階関数 9.4. Diverging functions 10. モジュール ❱ 10.1. プライベートとパブリック 1 ... type as a return type As an argument type If your function is generic over a trait but you don't mind the spe ... cific type, you can simplify the function declaration using impl Trait as the type of the ar ... R is only used to declare the type of src , so the function can also be written an fn parse_csv_document(src: ...
https://man.plustar.jp/rust/example/trait/impl_trait.html - [similar]
Rust By Example 日本語版 8124
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 2.6.2. Iterator::find 9.3. 高階関数 9.4. Diverging functions 10. モジュール ❱ 10.1. プライベートとパブリック 1 ... のコードに戻すことができます -> // This is the main function // main関数です fn main() { // Statements here are ... strokes to comment out everything * in this main() function. /*/*/* Try it yourself! */*/*/ */ /* * こちらはも ... を返したい時に使われます。 // Tuples can be used as function arguments and as return values // タプルを関数の引 ...
https://man.plustar.jp/rust/example/print.html - [similar]
関数 - Rust By Example 日本語版 8080
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 2.6.2. Iterator::find 9.3. 高階関数 9.4. Diverging functions 10. モジュール ❱ 10.1. プライベートとパブリック 1 ... `SGen`. // ジェネリック型`SGen`. // The following functions all take ownership of the variable passed into // ... を抜けて // 変数をメモリ上から開放する。 // Define a function `reg_fn` that takes an argument `_s` of type `S`. ... // This has no `<T>` so this is not a generic function. // `S`という型の引数`_s`をとる`reg_fn`という関数を ...
https://man.plustar.jp/rust/example/generics/gen_fn.html - [similar]
Creating a Library - Rust By Example 日本語版 7900
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 2.6.2. Iterator::find 9.3. 高階関数 9.4. Diverging functions 10. モジュール ❱ 10.1. プライベートとパブリック 1 ... トにリンクする方法を見ていきましょう。 pub fn public_function() { println!("called rary's `public_function()`"); ... } fn private_function() { println!("called rary's `private_function()`") ... ed rary's `indirect_access()`, that\n> "); private_function(); } $ rustc --crate-type=lib rary.rs $ ls lib* li ...
https://man.plustar.jp/rust/example/crates/lib.html - [similar]
Using a Library - Rust By Example 日本語版 7900
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 2.6.2. Iterator::find 9.3. 高階関数 9.4. Diverging functions 10. モジュール ❱ 10.1. プライベートとパブリック 1 ... t 2015 edition or earlier fn main() { rary::public_function(); // Error! `private_function` is private //rary: ... :private_function(); rary::indirect_access(); } # Where library.rlib ... edition=2018 && ./executable called rary's `public_function()` called rary's `indirect_access()`, that > calle ...
https://man.plustar.jp/rust/example/crates/using_lib.html - [similar]
クレート - Rust By Example 日本語版 7856
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 2.6.2. Iterator::find 9.3. 高階関数 9.4. Diverging functions 10. モジュール ❱ 10.1. プライベートとパブリック 1 ... ry」である。 #![crate_name = "rary"] pub fn public_function() { println!("called rary's `public_function()`"); ... } fn private_function() { println!("called rary's `private_function()`") ... ed rary's `indirect_access()`, that\n> "); private_function(); } crate_type アトリビュートが使用されているとき ...
https://man.plustar.jp/rust/example/attribute/crate.html - [similar]
PREV 1 2 3 4 5 6 NEXT