検索

phrase: max: clip:
target: order:
Results of 1 - 5 of about 5 for unsafe (0.013 sec.)
安全でない操作 - Rust By Example 日本語版 11674
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... リファレンス calling functions or methods which are unsafe (including calling a function over FFI, see a prev ... or modifying static mutable variables implementing unsafe traits 生ポインタ 生ポインタ * と参照 &T はよく似た ... きません。 fn main() { let raw_p: *const u32 = &10; unsafe { assert!(*raw_p == 10); } } Calling Unsafe Functi ... ons Some functions can be declared as unsafe , meaning it is the programmer's responsibility to ...
https://man.plustar.jp/rust/example/unsafe.html - [similar]
他言語関数インターフェイス - Rust By Example 日本語版 11122
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... } // Since calling foreign functions is considered unsafe, // it's common to write safe wrappers around them ... ににするためのラッパ fn cos(z: Complex) -> Complex { unsafe { ccosf(z) } } fn main() { // z = -1 + 0i let z = ... -1., im: 0. }; // calling a foreign function is an unsafe operation let z_sqrt = unsafe { csqrtf(z) }; print ... }", z, z_sqrt); // calling safe API wrapped around unsafe operation println!("cos({:?}) = {:?}", z, cos(z)); ...
https://man.plustar.jp/rust/example/std_misc/ffi.html - [similar]
型キャスティング - Rust By Example 日本語版 8181
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... rs a small runtime cost and can be avoided // with unsafe methods, however the results might overflow and // ... turn **unsound values**. Use these methods wisely: unsafe { // 300.0 is 44 println!("300.0 is {}", 300.0_f32 ...
https://man.plustar.jp/rust/example/types/cast.html - [similar]
定数 - Rust By Example 日本語版 7611
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ccessing or modifying a mutable static variable is unsafe . // Globals are declared outside all other scopes ...
https://man.plustar.jp/rust/example/custom_types/constants.html - [similar]
Rust By Example 日本語版 7335
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ccessing or modifying a mutable static variable is unsafe . // Globals are declared outside all other scopes ... rs a small runtime cost and can be avoided // with unsafe methods, however the results might overflow and // ... turn **unsound values**. Use these methods wisely: unsafe { // 300.0 is 44 println!("300.0 is {}", 300.0_f32 ...
https://man.plustar.jp/rust/example/print.html - [similar]
PREV 1 NEXT