検索
Results of 31 - 40 of about 193 for type (0.050 sec.)
- 構造体の場合 - Rust By Example 日本語版 5671
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
.5. 複数のジェネリック境界 14.6. Where句 14.7. New Type Idiom 14.8. 関連型 ❱ 14.8.1. 関連型が必要になる状況...
// A public struct with a public field of generic type `T` // パブリックなフィールド`T`(ジェネリック型)...
// A public struct with a private field of generic type `T` // プライベートなフィールド`T`(ジェネリック型...
- https://man.plustar.jp/rust/example/mod/struct_visibility.html - [similar]
- スタティックライフタイム - Rust By Example 日本語版 5671
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
.5. 複数のジェネリック境界 14.6. Where句 14.7. New Type Idiom 14.8. 関連型 ❱ 14.8.1. 関連型が必要になる状況...
NUM); } Trait bound As a trait bound, it means the type does not contain any non-static references. Eg. th...
e receiver can hold on to the type for as long as they want and it will never become...
- https://man.plustar.jp/rust/example/scope/lifetime/static_lifetime.html - [similar]
- key型の変種 - Rust By Example 日本語版 5671
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
.5. 複数のジェネリック境界 14.6. Where句 14.7. New Type Idiom 14.8. 関連型 ❱ 14.8.1. 関連型が必要になる状況...
p; // Eq requires that you derive PartialEq on the type. // Eqトレイトを使用する時は、PartialEqをderiveする...
AccountInfo<'a>{ name: &'a str, email: &'a str, } type Accounts<'a> = HashMap<Account<'a>, AccountInfo<'a...
- https://man.plustar.jp/rust/example/std/hash/alt_key_types.html - [similar]
- チャネル - Rust By Example 日本語版 5671
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
.5. 複数のジェネリック境界 14.6. Where句 14.7. New Type Idiom 14.8. 関連型 ❱ 14.8.1. 関連型が必要になる状況...
der<T>` and the `Receiver<T>`, // where `T` is the type of the message to be transferred // (type annotati...
- https://man.plustar.jp/rust/example/std_misc/channels.html - [similar]
- パイプ - Rust By Example 日本語版 5671
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
.5. 複数のジェネリック境界 14.6. Where句 14.7. New Type Idiom 14.8. 関連型 ❱ 14.8.1. 関連型が必要になる状況...
wc`の`stdin`に文字列を書き込む。 // // `stdin` has type `Option<ChildStdin>`, but since we know this insta...
開始しないからです。) // The `stdout` field also has type `Option<ChildStdout>` so must be unwrapped. // `st...
- https://man.plustar.jp/rust/example/std_misc/process/pipe.html - [similar]
- if let - Rust By Example 日本語版 5595
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
.5. 複数のジェネリック境界 14.6. Where句 14.7. New Type Idiom 14.8. 関連型 ❱ 14.8.1. 関連型が必要になる状況...
![allow(unused)] fn main() { // Make `optional` of type `Option<i32>` // `optional`という変数の型を`Option...
も柔軟に行うことができます。 fn main() { // All have type `Option<i32>` // 全て`Option<i32>`型 let number =...
- https://man.plustar.jp/rust/example/flow_control/if_let.html - [similar]
- 捕捉時の型推論 - Rust By Example 日本語版 5595
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
.5. 複数のジェネリック境界 14.6. Where句 14.7. New Type Idiom 14.8. 関連型 ❱ 14.8.1. 関連型が必要になる状況...
and calls it. // <F> denotes that F is a "Generic type parameter" fn apply<F>(f: F) where // The closure...
se std::mem; let greeting = "hello"; // A non-copy type. // `to_owned` creates owned data from borrowed on...
- https://man.plustar.jp/rust/example/fn/closures/input_parameters.html - [similar]
- 要素の捕捉 - Rust By Example 日本語版 5519
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
.5. 複数のジェネリック境界 14.6. Where句 14.7. New Type Idiom 14.8. 関連型 ❱ 14.8.1. 関連型が必要になる状況...
let _count_reborrowed = &mut count; // A non-copy type. // コピー不可能な型 let movable = Box::new(3); //...
p` requires `T` so this must take by value. A copy type // would copy into the closure leaving the origina...
- https://man.plustar.jp/rust/example/fn/closures/capture.html - [similar]
- メソッド - Rust By Example 日本語版 5519
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
.5. 複数のジェネリック境界 14.6. Where句 14.7. New Type Idiom 14.8. 関連型 ❱ 14.8.1. 関連型が必要になる状況...
e this function is associated with // a particular type, that is, Point. // これは特定の型(すなわち Point...
f` is sugar for `self: &Self`, where `Self` is the type of the // caller object. In this case `Self` = `Re...
- https://man.plustar.jp/rust/example/fn/methods.html - [similar]
- フォーマットしてプリント - Rust By Example 日本語版 5519
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
.5. 複数のジェネリック境界 14.6. Where句 14.7. New Type Idiom 14.8. 関連型 ❱ 14.8.1. 関連型が必要になる状況...
t a suffix, 31 becomes an i32. You can change what type 31 is // by providing a suffix. The number 31i64 f...
or example has the type i64. // サフィックスで型を指定しなければ31はi32とし...
d_code)] struct Structure(i32); // However, custom types such as this structure require more complicated /...
- https://man.plustar.jp/rust/example/hello/print.html - [similar]