検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 193 for cfg (0.020 sec.)
cfg - Rust By Example 日本語版 17459
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... トリビュート ❱ 13.1. dead_code 13.2. クレート 13.3. cfg ❱ 13.3.1. 条件の追加 14. ジェネリクス ❱ 14.1. 関数 ... fault) Rust Coal Navy Ayu Rust By Example 日本語版 cfg 環境に応じたコンパイルをするには2種類の方法がありま ... す。 cfg アトリビュート: #[cfg(...)] をアトリビュートとして ... 使用する。 cfg! マクロ: cfg!(...) をブーリアンとして評価する。 前 ...
https://man.plustar.jp/rust/example/attribute/cfg.html - [similar]
条件の追加 - Rust By Example 日本語版 12375
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... トリビュート ❱ 13.1. dead_code 13.2. クレート 13.3. cfg ❱ 13.3.1. 条件の追加 14. ジェネリクス ❱ 14.1. 関数 ... うちに提供しています。条件を独自に追加する場合には --cfg フラグを用いて rustc に伝える必要があります。 #[cf ... to run this to see what happens without the custom cfg flag. cfg フラグがある場合: $ rustc --cfg some_con ... met! 関連キーワード: 条件 , 追加 , 関数 , Result , cfg , Rust , By , Example , エラー , Option ...
https://man.plustar.jp/rust/example/attribute/cfg/custom.html - [similar]
Unit testing - Rust By Example 日本語版 9832
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... トリビュート ❱ 13.1. dead_code 13.2. クレート 13.3. cfg ❱ 13.3.1. 条件の追加 14. ジェネリクス ❱ 14.1. 関数 ... ct. Most unit tests go into a tests mod with the #[cfg(test)] attribute . Test functions are marked with ... de)] fn bad_add(a: i32, b: i32) -> i32 { a - b } #[cfg(test)] mod tests { // Note this useful idiom: impo ... floats don't have square roots".to_owned()) } } #[cfg(test)] mod tests { use super::*; #[test] fn test_s ...
https://man.plustar.jp/rust/example/testing/unit_testing.html - [similar]
Dev-dependencies - Rust By Example 日本語版 7714
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... トリビュート ❱ 13.1. dead_code 13.2. クレート 13.3. cfg ❱ 13.3.1. 条件の追加 14. ジェネリクス ❱ 14.1. 関数 ... rc/lib.rs : // externing crate for test-only use #[cfg(test)] #[macro_use] extern crate pretty_assertions ... ; pub fn add(a: i32, b: i32) -> i32 { a + b } #[cfg(test)] mod tests { use super::*; use pretty_assert ...
https://man.plustar.jp/rust/example/testing/dev_dependencies.html - [similar]
ファイルシステムとのやり取り - Rust By Example 日本語版 7073
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... トリビュート ❱ 13.1. dead_code 13.2. クレート 13.3. cfg ❱ 13.3.1. 条件の追加 14. ジェネリクス ❱ 14.1. 関数 ... ンボリックリンクを作成、返り値は`io::Result<()>` if cfg!(target_family = "unix") { unix::fs::symlink("../b ... ng::new(); f.read_to_string(&mut s)?; Ok(s) } 参照 cfg! 関連キーワード: Result , println , why , path , u ...
https://man.plustar.jp/rust/example/std_misc/fs.html - [similar]
Tests - Rust By Example 日本語版 6225
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... トリビュート ❱ 13.1. dead_code 13.2. クレート 13.3. cfg ❱ 13.3.1. 条件の追加 14. ジェネリクス ❱ 14.1. 関数 ... le, such as below: #![allow(unused)] fn main() { #[cfg(test)] mod tests { // Import the necessary modules ...
https://man.plustar.jp/rust/example/cargo/test.html - [similar]
クレート - Rust By Example 日本語版 5378
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... トリビュート ❱ 13.1. dead_code 13.2. クレート 13.3. cfg ❱ 13.3.1. 条件の追加 14. ジェネリクス ❱ 14.1. 関数 ...
https://man.plustar.jp/rust/example/attribute/crate.html - [similar]
dead_code - Rust By Example 日本語版 5378
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... トリビュート ❱ 13.1. dead_code 13.2. クレート 13.3. cfg ❱ 13.3.1. 条件の追加 14. ジェネリクス ❱ 14.1. 関数 ...
https://man.plustar.jp/rust/example/attribute/unused.html - [similar]
アトリビュート - Rust By Example 日本語版 5378
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... トリビュート ❱ 13.1. dead_code 13.2. クレート 13.3. cfg ❱ 13.3.1. 条件の追加 14. ジェネリクス ❱ 14.1. 関数 ...
https://man.plustar.jp/rust/example/attribute.html - [similar]
Build Scripts - Rust By Example 日本語版 5378
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... トリビュート ❱ 13.1. dead_code 13.2. クレート 13.3. cfg ❱ 13.3.1. 条件の追加 14. ジェネリクス ❱ 14.1. 関数 ...
https://man.plustar.jp/rust/example/cargo/build_scripts.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 NEXT