検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 19 for generic (0.022 sec.)
関数 - Rust By Example 日本語版 15606
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... rete type `S`. // 具象型`S`. struct SGen<T>(T); // Generic type `SGen`. // ジェネリック型`SGen`. // The follo ... of type `S`. // This has no `<T>` so this is not a generic function. // `S`という型の引数`_s`をとる`reg_fn`と ... A`, but because `A` has not // been specified as a generic type parameter for `gen_spec_t`, it is not generic ... hich is a specific type. // Because `i32` is not a generic type, this function is also not generic. // `gen_s ...
https://man.plustar.jp/rust/example/generics/gen_fn.html - [similar]
メソッド - Rust By Example 日本語版 8998
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... struct S; // Concrete type `S` // 具象型`S` struct GenericVal<T>(T); // Generic type `GenericVal` // ジェネリ ... ック型`GenericVal` // impl of GenericVal where we explicitly spec ... type parameters: // 型パラメータを指定したうえで、GenericValにメソッドを実装 impl GenericVal<f32> {} // Spec ... ify `f32` // `f32`の場合のメソッド impl GenericVal<S> {} // Specify `S` as defined above // 上で定 ...
https://man.plustar.jp/rust/example/generics/impl.html - [similar]
幽霊型パラメータ - Rust By Example 日本語版 8896
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... r::PhantomData; // A phantom tuple struct which is generic over `A` with hidden parameter `B`. // ジェネリック ... PhantomData<B>); // A phantom type struct which is generic over `A` with hidden parameter `B`. // 同様に構造体 ... PhantomData<B> } // Note: Storage is allocated for generic type `A`, but not for `B`. // Therefore, `B` canno ...
https://man.plustar.jp/rust/example/generics/phantom.html - [similar]
ジェネリックトレイト - Rust By Example 日本語版 8469
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ーブが起きる型 struct Empty; struct Null; // A trait generic over `T`. // ジェネリック型 `T`に対するトレイト tr ... elf, _: T); } // Implement `DoubleDrop<T>` for any generic parameter `T` and // caller `U`. // `U`を`self`とし ...
https://man.plustar.jp/rust/example/generics/gen_trait.html - [similar]
ジェネリック境界 - Rust By Example 日本語版 8349
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 味です。 // Define a function `printer` that takes a generic type `T` which // must implement trait `Display`. ... truct Triangle { length: f64, height: f64 } // The generic `T` must implement `Debug`. Regardless // of the t ...
https://man.plustar.jp/rust/example/generics/bounds.html - [similar]
構造体の場合 - Rust By Example 日本語版 8349
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... mod my { // A public struct with a public field of generic type `T` // パブリックなフィールド`T`(ジェネリック ... s: 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 日本語版 8349
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... T: 'a>(&'a T); // `Ref` contains a reference to a generic type `T` that has // an unknown lifetime `'a`. `T` ... `Ref`のライフタイムは`'a`を超えてはならない。 // A generic function which prints using the `Debug` trait. // ...
https://man.plustar.jp/rust/example/scope/lifetime/lifetime_bounds.html - [similar]
impl Trait - Rust By Example 日本語版 8349
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... eturn type As an argument type If your function is generic over a trait but you don't mind the specific type, ... es into a Vec<Vec<String>> } parse_csv_document is generic, allowing it to take any type which implements Buf ...
https://man.plustar.jp/rust/example/trait/impl_trait.html - [similar]
ジェネリクス - Rust By Example 日本語版 8247
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 必要があります。 The simplest and most common use of generics is for type parameters. ジェネリック型の型パラメー ... precedes the first use of `T`, so `SingleGen` is a generic type. // Because the type parameter `T` is generic ...
https://man.plustar.jp/rust/example/generics.html - [similar]
Resultに対するエイリアス - Rust By Example 日本語版 7922
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ましょう。 use std::num::ParseIntError; // Define a generic alias for a `Result` with the error type `ParseInt ...
https://man.plustar.jp/rust/example/error/result/result_alias.html - [similar]
PREV 1 2 NEXT