検索
Results of 11 - 20 of about 32 for allow (0.086 sec.)
- ネストとラベル - Rust By Example 日本語版 7507
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
貼り、 break / continue にそのラベルを渡します。 #![allow(unreachable_code)] fn main() { 'outer: loop { prin...
- https://man.plustar.jp/rust/example/flow_control/loop/nested.html - [similar]
- Diverging functions - Rust By Example 日本語版 7507
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
ey are marked using ! , which is an empty type. #![allow(unused)] fn main() { fn foo() -> ! { panic!("This...
is required, for instance in match branches. This allows us to write code like this: fn main() { fn sum_od...
- https://man.plustar.jp/rust/example/fn/diverging.html - [similar]
- メソッド - Rust By Example 日本語版 7507
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
装する際にもジェネリック型特有の記法が必要です。 #![allow(unused)] fn main() { struct S; // Concrete type `S...
- https://man.plustar.jp/rust/example/generics/impl.html - [similar]
- read lines - Rust By Example 日本語版 7507
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
); } } } } // The output is wrapped in a Result to allow matching on errors // Returns an Iterator to the R...
- https://man.plustar.jp/rust/example/std_misc/file/read_lines.html - [similar]
- エイリアス - Rust By Example 日本語版 7507
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
e warning. // 警告を抑えるアトリビュートを使用。 #[allow(non_camel_case_types)] type u64_t = u64; // TODO ^...
- https://man.plustar.jp/rust/example/types/alias.html - [similar]
- Tests - Rust By Example 日本語版 7217
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
s if two tests output to a file, such as below: #![allow(unused)] fn main() { #[cfg(test)] mod tests { // I...
- https://man.plustar.jp/rust/example/cargo/test.html - [similar]
- FromおよびInto - Rust By Example 日本語版 7217
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
例えば、 str から String への型変換は簡単です。 #![allow(unused)] fn main() { let my_str = "hello"; let my_...
- https://man.plustar.jp/rust/example/conversion/from_into.html - [similar]
- 構造体 - Rust By Example 日本語版 7217
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
構造体は他の構造体のフィールドになることができる #[allow(dead_code)] struct Rectangle { // A rectangle can...
- https://man.plustar.jp/rust/example/custom_types/structs.html - [similar]
- Combinators: and_then - Rust By Example 日本語版 7217
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
> になります。これは eat() には不適切な型です。 #![allow(dead_code)] #[derive(Debug)] enum Food { CordonBle...
- https://man.plustar.jp/rust/example/error/option_unwrap/and_then.html - [similar]
- Combinators: map - Rust By Example 日本語版 7217
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
を、よりコンパクトに果たしているのがわかります。 #![allow(dead_code)] #[derive(Debug)] enum Food { Apple, Ca...
- https://man.plustar.jp/rust/example/error/option_unwrap/map.html - [similar]