検索

phrase: max: clip:
target: order:
Results of 1 - 5 of about 5 for use (0.015 sec.)
パスとモジュールシステムへの変更 - エディションガイド 12612
序文 1. エディションとは? 1.1. 新しいプロジェクトを作成する 1.2. 既存のプロジェクトのエディション ... ィションガイド パスとモジュールシステムへの変更 概要 use 宣言中のパスが、他のパスと同じように扱われるように ... ュールを置く場合でも、 mod.rs は必要なくなりました。 use 宣言におけるパスも、他の場所のパスと同じように書け ... // Rust 2015 extern crate futures; mod submodule { use futures::Future; } これから: // Rust 2018 mod subm ... odule { use futures::Future; } 今や、プロジェクトに新しくクレー ...
https://man.plustar.jp/rust/edition/rust-2018/path-changes.html - [similar]
エディションガイド 9633
序文 1. エディションとは? 1.1. 新しいプロジェクトを作成する 1.2. 既存のプロジェクトのエディション ... 下のコードがあるクレートがあるとします。 #![allow(unused)] fn main() { trait Foo { fn foo(&self, i32); } } ... もう一度 src/lib.rs を見てみましょう。 #![allow(unused)] fn main() { trait Foo { fn foo(&self, _: i32); ... ようとしても、 foo は自動修復されません。 #![allow(unused)] fn main() { #[macro_export] macro_rules! foo { ... す。 現在、以下のリントがあります。 Edition 2018: unused-extern-crates explicit-outlives-requirements Edit ...
https://man.plustar.jp/rust/edition/print.html - [similar]
クロージャはフィールドごとにキャプチャする - エディションガイド 7960
序文 1. エディションとは? 1.1. 新しいプロジェクトを作成する 1.2. 既存のプロジェクトのエディション ... の1つをムーブする println!("{}", a.y); // Ok: Still use another field of the struct // OK: 構造体の他のフィ ... 全ての変数がキャプチャされるようにします: #![allow(unused)] fn main() { let x = (vec![22], vec![23]); let c ... で、次のコードは x をキャプチャしません: #![allow(unused)] fn main() { let x = 10; let c = || { let _ = x; ... クロージャがドロップされたときになります: #![allow(unused)] fn main() { fn move_value<T>(_: T){} { let t = ...
https://man.plustar.jp/rust/edition/rust-2021/disjoint-capture-in-closures.html - [similar]
Prelude への追加 - エディションガイド 7960
序文 1. エディションとは? 1.1. 新しいプロジェクトを作成する 1.2. 既存のプロジェクトのエディション ... はモジュールに pub struct Option; が含まれていたら、 use example::*; とすることで Option は曖昧性なく examp ... れたトレイトと重複していることがあります: #![allow(unused)] fn main() { mod submodule { pub trait MyTrait { ... Iterator トレイトのメソッドと同名です。 #![allow(unused)] fn main() { use std::iter::IntoIterator; struct ...
https://man.plustar.jp/rust/edition/rust-2021/prelude.html - [similar]
デフォルトの Cargo のフィーチャリゾルバ - エディションガイド 7776
序文 1. エディションとは? 1.1. 新しいプロジェクトを作成する 1.2. 既存のプロジェクトのエディション ... す: note: Switching to Edition 2021 will enable the use of the version 2 feature resolver in Cargo. This m ... ay cause some dependencies to be built with fewer features ... dependencies, the given features will no longer be used: (訳) 2021 エディションに切り替えると、Cargoのフィ ...
https://man.plustar.jp/rust/edition/rust-2021/default-cargo-resolver.html - [similar]
PREV 1 NEXT