検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 32 for allow (0.023 sec.)
列挙型 - Rust By Example 日本語版 13355
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... )も似たやり方でデストラクトすることができます。 // `allow` required to silence warnings because only // one ... variant is used. // `allow`は値を一つだけ使用したことによる警告を抑えるために ... 存在する。 #[allow(dead_code)] enum Color { // These 3 are specified ... 挙したのでその他の場合の処理は必要ない。 } } 参照 #[allow(...)] , カラーモデル , 列挙型 関連キーワード: prin ...
https://man.plustar.jp/rust/example/flow_control/match/destructuring/destructure... - [similar]
Rust By Example 日本語版 13065
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 保持する `Structure` という名の構造体を定義します. #[allow(dead_code)] struct Structure(i32); // However, cus ... の場合はやはり手動で実装しなくてはなりません。 #![allow(unused)] fn main() { // This structure cannot be p ... る fmt::Display を手動で実装することで可能です。 #![allow(unused)] fn main() { // Import (via `use`) the `fm ... 構造体は他の構造体のフィールドになることができる #[allow(dead_code)] struct Rectangle { // A rectangle can ...
https://man.plustar.jp/rust/example/print.html - [similar]
プライベートとパブリック - Rust By Example 日本語版 11019
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... intln!("called `my_mod::nested::function()`"); } #[allow(dead_code)] fn private_function() { println!("call ... ュールも、同様の性質を示す。 mod private_nested { #[allow(dead_code)] pub fn function() { println!("called ` ... it is declared as visible within a bigger scope. #[allow(dead_code)] pub(crate) fn restricted_function() { ... !("called `function()`"); } fn main() { // Modules allow disambiguation between items that have the same na ...
https://man.plustar.jp/rust/example/mod/visibility.html - [similar]
dead_code - Rust By Example 日本語版 10439
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 効化することができます。 fn used_function() {} // `#[allow(dead_code)]` is an attribute that disables the `de ... ad_code` lint // `#[allow(dead_code)]`は`dead_code`リントを抑制するアトリビュ ... ートです。 #[allow(dead_code)] fn unused_function() {} fn noisy_unuse ...
https://man.plustar.jp/rust/example/attribute/unused.html - [similar]
幽霊型パラメータ - Rust By Example 日本語版 8683
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 。2つ目のパラメータは幽霊型 #[derive(PartialEq)] // Allow equality test for this type. // 比較演算子(`==`)で ... `B`. // 同様に構造体を定義 #[derive(PartialEq)] // Allow equality test for this type. // 比較演算子での比較 ...
https://man.plustar.jp/rust/example/generics/phantom.html - [similar]
ファイルの階層構造 - Rust By Example 日本語版 8683
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... { println!("called `my::nested::function()`"); } #[allow(dead_code)] fn private_function() { println!("call ... private_function()`"); } In my/inaccessible.rs : #[allow(dead_code)] pub fn public_function() { println!("c ...
https://man.plustar.jp/rust/example/mod/split.html - [similar]
Box, スタックとヒープ - Rust By Example 日本語版 8683
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 一段と直接的な操作が可能になります。 use std::mem; #[allow(dead_code)] #[derive(Debug, Clone, Copy)] struct P ... op left and bottom right // corners are in space #[allow(dead_code)] struct Rectangle { top_left: Point, bo ...
https://man.plustar.jp/rust/example/std/box.html - [similar]
Unit testing - Rust By Example 日本語版 8377
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... tion, its purpose is to fail in this // example. #[allow(dead_code)] fn bad_add(a: i32, b: i32) -> i32 { a ... o run them with command cargo test -- --ignored #![allow(unused)] fn main() { pub fn add(a: i32, b: i32) -> ...
https://man.plustar.jp/rust/example/testing/unit_testing.html - [similar]
C言語ライクな列挙型 - Rust By Example 日本語版 7507
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... れていないコードによる警告を抑えるアトリビュート #![allow(dead_code)] // enum with implicit discriminator (s ...
https://man.plustar.jp/rust/example/custom_types/enum/c_like.html - [similar]
use - Rust By Example 日本語版 7507
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 用されていないコードよる警告を隠すアトリビュート #![allow(dead_code)] enum Status { Rich, Poor, } enum Work ...
https://man.plustar.jp/rust/example/custom_types/enum/enum_use.html - [similar]
PREV 1 2 3 4 NEXT