検索
Results of 1 - 6 of about 6 for size (0.006 sec.)
- リテラル - Rust By Example 日本語版 12740
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...型は使用方法に依存する。 let i = 1; let f = 1.0; // `size_of_val` returns the size of a variable in bytes //...`size_of_val` 関数は変数のサイズをバイトで返す。 println...!("size of `x` in bytes: {}", std::mem::size_of_val(&x));...println!("size of `y` in bytes: {}", std::mem::size_of_val(&y));... - https://man.plustar.jp/rust/example/types/literals.html - [similar]
- Box, スタックとヒープ - Rust By Example 日本語版 10053
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...ntln!("Point occupies {} bytes on the stack", mem::size_of_val(&point)); println!("Rectangle occupies {} b...ytes on the stack", mem::size_of_val(&rectangle)); // box size == pointer size /..."Boxed point occupies {} bytes on the stack", mem::size_of_val(&boxed_point)); println!("Boxed rectangle o...ccupies {} bytes on the stack", mem::size_of_val(&boxed_rectangle)); println!("Boxed box occ... - https://man.plustar.jp/rust/example/std/box.html - [similar]
- Rust By Example 日本語版 8536
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...ラー型 符号付き整数: i8 , i16 , i32 , i64 , i128 , isize (ポインタのサイズ) 符号無し整数: u8 , u16 , u32..., u64 , u128 , usize (ポインタのサイズ) 浮動小数点数: f32 , f64 char...ンタ、2番目のワードがスライスの長さです。ワード長は usize と同一で、プロセッサのアーキテクチャによって決まり...{} elements", slice.len()); } fn main() { // Fixed-size array (type signature is superfluous) // 固定長の配... - https://man.plustar.jp/rust/example/print.html - [similar]
- DRY (Don't Repeat Yourself) - Rust By Example 日本語版 8390
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...r, $y:expr, $z:expr) => { #[test] fn $func() { for size in 0usize..10 { let mut x: Vec<_> = iter::repeat($...x).take(size).collect(); let y: Vec<_> = iter::repeat($y).take(...).collect(); let z: Vec<_> = iter::repeat($z).take(size).collect(); super::$func(&mut x, &y); assert_eq!(x... - https://man.plustar.jp/rust/example/macros/dry.html - [similar]
- 配列とスライス - Rust By Example 日本語版 7659
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...ンタ、2番目のワードがスライスの長さです。ワード長は usize と同一で、プロセッサのアーキテクチャによって決まり...{} elements", slice.len()); } fn main() { // Fixed-size array (type signature is superfluous) // 固定長の配...に置かれる println!("array occupies {} bytes", mem::size_of_val(&xs)); // Arrays can be automatically borro... - https://man.plustar.jp/rust/example/primitives/array.html - [similar]
- Returning Traits with dyn - Rust By Example 日本語版 7384
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...e heap. Because a reference has a statically-known size, and the compiler can guarantee it points to a hea... - https://man.plustar.jp/rust/example/trait/dyn.html - [similar]
PREV
1
NEXT