検索

phrase: max: clip:
target: order:
Results of 11 - 20 of about 20 for allow (0.032 sec.)
借用の分割 7715
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 可能です。 ですから、このコードは今日動作します。 #![allow(unused)] fn main() { struct Foo { a: i32, b: i32, ... イテレータのトレイトは以下のように定義されます。 #![allow(unused)] fn main() { trait Iterator { type Item; f ...
https://man.plustar.jp/rust/nomicon/borrow-splitting.html - [similar]
リファレンス 7715
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... フィールドを指す参照を又貸しすることができます。 #![allow(unused)] fn main() { let x = &mut (1, 2); { // x の ... に証明できるので、 フィールドの又貸しが可能です。 #![allow(unused)] fn main() { let x = &mut (1, 2); { // x を ...
https://man.plustar.jp/rust/nomicon/references.html - [similar]
型変換 7528
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... てそれらを用いて 新しい型の値を構築する方法です。 #![allow(unused)] fn main() { struct Foo { x: u32, y: u16, ...
https://man.plustar.jp/rust/nomicon/conversions.html - [similar]
PhantomData 7528
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... etermining drop check soundness. This will in turn allow people to create unsoundness using Vec's destructo ...
https://man.plustar.jp/rust/nomicon/phantom-data.html - [similar]
コンストラクタ 7341
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 全てのフィールドをいっぺんに初期化することです。 #![allow(unused)] fn main() { struct Foo { a: u8, b: u32, c ...
https://man.plustar.jp/rust/nomicon/constructors.html - [similar]
アロケーティング 7341
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... ::process::exit を 適当な値と共に呼び出します。 #![allow(unused)] fn main() { fn oom() { ::std::process::ex ... 純な例として、以下のコード片を考えてみましょう。 #![allow(unused)] fn main() { let x = &mut 0; let y = &mut ...
https://man.plustar.jp/rust/nomicon/vec-alloc.html - [similar]
チェックされるメモリ 7154
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 析は行われます。例えば、このコードは動作します。 #![allow(unused)] fn main() { let x: i32; loop { // Rust は ...
https://man.plustar.jp/rust/nomicon/checked-uninit.html - [similar]
チェックされないメモリ 7154
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 全部一緒にすると、以下のようなコードとなります。 #![allow(unused)] fn main() { use std::mem; use std::ptr; / ...
https://man.plustar.jp/rust/nomicon/unchecked-uninit.html - [similar]
Drain 7154
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... は両方同じ構造を持っています。抽出しましょう。 #![allow(unused)] fn main() { struct RawValIter<T> { start: ...
https://man.plustar.jp/rust/nomicon/vec-drain.html - [similar]
安全と危険の相互作用 6967
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... る事ができます。 このようなコードになるでしょう。 #![allow(unused)] fn main() { use std::cmp::Ordering; unsaf ...
https://man.plustar.jp/rust/nomicon/safe-unsafe-meaning.html - [similar]
PREV 1 2 NEXT