検索

phrase: max: clip:
target: order:
Results of 1 - 5 of about 5 for impl (0.015 sec.)
新しいキーワード - エディションガイド 12593
序文 1. エディションとは? 1.1. 新しいプロジェクトを作成する 1.2. 既存のプロジェクトのエディション ... 内では: #![allow(unused)] fn main() { trait Trait {} impl Trait for i32 {} // old // いままで fn function1() ... -> Box<Trait> { unimplemented!() } // new // これから fn function2() -> B ... ox<dyn Trait> { unimplemented!() } } これだけです! なぜ? トレイトオブジェ ... 、代替機能にはできることができないのです。 その上、 impl Trait が入ったことで、「 impl Trait か dyn Trait か ...
https://man.plustar.jp/rust/edition/rust-2018/new-keywords.html - [similar]
Prelude への追加 - エディションガイド 9155
序文 1. エディションとは? 1.1. 新しいプロジェクトを作成する 1.2. 既存のプロジェクトのエディション ... er` メソッドと同名。 fn from_iter(x: Option<A>); } impl<T> MyTrait<()> for Vec<T> { fn from_iter(_: Option ... <()>) {} } fn main() { // Vec<T> implements both `std::iter::FromIterator` and `MyTrait` ... ::IntoIterator; struct MyStruct { data: Vec<u32> } impl MyStruct { // This has the same name as `std::iter ... FromIterator::from_iter` と同名 fn from_iter(iter: impl IntoIterator<Item = u32>) -> Self { Self { data: i ...
https://man.plustar.jp/rust/edition/rust-2021/prelude.html - [similar]
エディションガイド 9026
序文 1. エディションとは? 1.1. 新しいプロジェクトを作成する 1.2. 既存のプロジェクトのエディション ... 内では: #![allow(unused)] fn main() { trait Trait {} impl Trait for i32 {} // old // いままで fn function1() ... -> Box<Trait> { unimplemented!() } // new // これから fn function2() -> B ... ox<dyn Trait> { unimplemented!() } } これだけです! なぜ? トレイトオブジェ ... 、代替機能にはできることができないのです。 その上、 impl Trait が入ったことで、「 impl Trait か dyn Trait か ...
https://man.plustar.jp/rust/edition/print.html - [similar]
推論変数への生ポインタに対するメソッドのディスパッチ - エディションガイド 7629
序文 1. エディションとは? 1.1. 新しいプロジェクトを作成する 1.2. 既存のプロジェクトのエディション ... : #![feature(arbitrary_self_types)] struct MyType; impl MyType { // この関数が問題 fn is_null(self: *mut S ...
https://man.plustar.jp/rust/edition/rust-2018/tyvar-behind-raw-pointer.html - [similar]
クロージャはフィールドごとにキャプチャする - エディションガイド 7501
序文 1. エディションとは? 1.1. 新しいプロジェクトを作成する 1.2. 既存のプロジェクトのエディション ... () { use std::thread; struct Ptr(*mut i32); unsafe impl Send for Ptr {} let mut x = 5; let px = Ptr(&mut x ...
https://man.plustar.jp/rust/edition/rust-2021/disjoint-capture-in-closures.html - [similar]
PREV 1 NEXT