検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 10 for Trait (0.027 sec.)
型強制 14033
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... され、以下の変換を有効にします。 [T; n] => [T] T => Trait 但し T: Trait Foo<..., T, ...> => Foo<..., U, ...> ... が存在するにも関わらず、 型チェックに通りません。 trait Trait {} fn foo<X: Trait>(t: X) {} impl<'a> Trait ... 2 = &mut 0; foo(t); } <anon>:10:5: 10:8 error: the trait bound `&mut i32 : Trait` is not satisfied [E0277] ... (エラー: トレイト境界 `&mut i32: Trait` が満たされていません) <anon>:10 foo(t); ^~~ 関連キ ...
https://man.plustar.jp/rust/nomicon/coercions.html - [similar]
print.html 9868
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... nused)] fn main() { use std::cmp::Ordering; unsafe trait UnsafeOrd { fn cmp(&self, other: &Self) -> Orderin ... て実行時にはその型を利用することができます。 つまり、Trait オブジェクトを補完する情報とは vtable へのポインタ ... タイムは含まれません。 (デフォルトメソッドの場合の trait ヘッダに現れるライフタイムも含まれません。) 将来の ... す。 この問題は、高階トレイト境界(HRTB: Higher-Rank Trait Bounds)という魔法で解決できます。 HRTB を使うとつ ...
https://man.plustar.jp/rust/nomicon/print.html - [similar]
Subtyping and Variance 8581
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... ariant in T , which is used in matching methods in trait implementations to the trait definition. Traits do ...
https://man.plustar.jp/rust/nomicon/subtyping.html - [similar]
Drop Check 8473
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... ch indirect access are: invoking a callback, via a trait method call. (Future changes to the language, such ... .2)(&self.0), self.1); } } Here is an example of a trait method call: use std::fmt; struct Inspector<T: fmt ...
https://man.plustar.jp/rust/nomicon/dropck.html - [similar]
高階トレイト境界 8152
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... す。 この問題は、高階トレイト境界(HRTB: Higher-Rank Trait Bounds)という魔法で解決できます。 HRTB を使うとつ ...
https://man.plustar.jp/rust/nomicon/hrtb.html - [similar]
ライフタイムの省略 8152
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... タイムは含まれません。 (デフォルトメソッドの場合の trait ヘッダに現れるライフタイムも含まれません。) 将来の ...
https://man.plustar.jp/rust/nomicon/lifetime-elision.html - [similar]
Send and Sync 8152
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... safe. Rust captures this through the Send and Sync traits. A type is Send if it is safe to send it to anoth ... hem work right. First and foremost, they're unsafe traits . This means that they are unsafe to implement, a ... ey are correctly implemented. Since they're marker traits (they have no associated items like methods), cor ... vior. Send and Sync are also automatically derived traits. This means that, unlike every other trait, if a ...
https://man.plustar.jp/rust/nomicon/send-and-sync.html - [similar]
借用の分割 7955
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... のように定義されます。 #![allow(unused)] fn main() { trait Iterator { type Item; fn next(&mut self) -> Option ...
https://man.plustar.jp/rust/nomicon/borrow-splitting.html - [similar]
奇妙なサイズの型 7955
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... て実行時にはその型を利用することができます。 つまり、Trait オブジェクトを補完する情報とは vtable へのポインタ ...
https://man.plustar.jp/rust/nomicon/exotic-sizes.html - [similar]
安全と危険の相互作用 7955
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... nused)] fn main() { use std::cmp::Ordering; unsafe trait UnsafeOrd { fn cmp(&self, other: &Self) -> Orderin ...
https://man.plustar.jp/rust/nomicon/safe-unsafe-meaning.html - [similar]
PREV 1 NEXT