検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 18 for crate (0.022 sec.)
クレート - Rust By Example 日本語版 13211
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... st Coal Navy Ayu Rust By Example 日本語版 クレート crate_type アトリビュートは、そのクレートがライブラリ、バ ... のタイプのライブラリであるかも伝えることができます。 crate_name はクレートの名前を決定するのに使用します。 Ho ... wever, it is important to note that both the crate_type and crate_name attributes have no effect what ... ty of Rust projects, this means real-world uses of crate_type and crate_name are relatively limited. // Thi ...
https://man.plustar.jp/rust/example/attribute/crate.html - [similar]
Integration testing - Rust By Example 日本語版 11547
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ivate code. Integration tests are external to your crate and use only its public interface in the same way ... ext to src . File src/lib.rs : // Define this in a crate called `adder`. // Assume that crate is called add ... e with test: tests/integration_test.rs : // extern crate we're testing, same as any other code would do. ex ... tern crate adder; #[test] fn test_add() { assert_eq!(adder::a ...
https://man.plustar.jp/rust/example/testing/integration_testing.html - [similar]
プライベートとパブリック - Rust By Example 日本語版 11238
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... `path` must be a parent or ancestor module pub(in crate::my_mod) fn public_function_in_my_mod() { print!(" ... ; nested::public_function_in_super_mod(); } // pub(crate) makes functions visible only within the current c ... rate pub(crate) fn public_function_in_crate() { println!("called ... `my_mod::public_function_in_crate()`"); } // Nested modules follow the same rules fo ...
https://man.plustar.jp/rust/example/mod/visibility.html - [similar]
Dev-dependencies - Rust By Example 日本語版 10106
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... provide colorful diff. One such example is using a crate that extends standard assert! macros. File Cargo.t ... oml : # standard crate data is left out [dev-dependencies] pretty_asserti ... ons = "1" File src/lib.rs : // externing crate for test-only use #[cfg(test)] #[macro_use] extern ... crate pretty_assertions; pub fn add(a: i32, b: i32) -> i ...
https://man.plustar.jp/rust/example/testing/dev_dependencies.html - [similar]
Raw identifiers - Rust By Example 日本語版 8459
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... oduced in a newer edition. For example, consider a crate foo compiled with the 2015 edition of Rust that ex ... we would have no way to name the function. extern crate foo; fn main() { foo::try(); } You'll get this err ... d You can write this with a raw identifier: extern crate foo; fn main() { foo::r#try(); } 関連キーワード: i ...
https://man.plustar.jp/rust/example/compatibility/raw_identifiers.html - [similar]
super と self - Rust By Example 日本語版 8356
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... // This will bind to the `cool::function` in the *crate* scope. // In this case the crate scope is the out ... 、クレートスコープは一番外側のスコープである。 { use crate::cool::function as root_function; root_function(); ...
https://man.plustar.jp/rust/example/mod/super.html - [similar]
use宣言 - Rust By Example 日本語版 8356
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 能になります。例えば以下のように使えます。 // extern crate deeply; // normally, this would exist and not be c ... ommented out! use crate::deeply::nested::{ my_first_function, my_second_fu ... ction()`は外の`function()`をシャドウイングする use crate::deeply::nested::function; function(); // `use` bi ...
https://man.plustar.jp/rust/example/mod/use.html - [similar]
ドキュメンテーション - Rust By Example 日本語版 8253
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ントは大規模なプロジェクトの際に非常に有用です。 #![crate_name = "doc"] /// A human being is represented her ... ink it into each doctest program: $ rustc doc.rs --crate-type lib $ rustdoc --test --extern doc="libdoc.rli ... ple from libcore/prelude #[doc(no_inline)] pub use crate::mem::drop; hidden Using this tells rustdoc not to ...
https://man.plustar.jp/rust/example/meta/doc.html - [similar]
Creating a Library - Rust By Example 日本語版 7841
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ss()`, that\n> "); private_function(); } $ rustc --crate-type=lib rary.rs $ ls lib* library.rlib ライブラリ ... けます。(訳注: ここでは lib + rary )この振る舞いは crate_name アトリビュート を用いてオーバーライドできます ...
https://man.plustar.jp/rust/example/crates/lib.html - [similar]
Using a Library - Rust By Example 日本語版 7841
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... Rust By Example 日本語版 Using a Library To link a crate to this new library you may use rustc 's --extern ... ehaves the same way as any other module. // extern crate rary; // May be required for Rust 2015 edition or ...
https://man.plustar.jp/rust/example/crates/using_lib.html - [similar]
PREV 1 2 NEXT