Movatterモバイル変換


[0]ホーム

URL:


Rust logo
Rust 1.88.0
6b00bc388

Primitive Types

There is a new edition of the book and this is an old link.

Rust is astatically typed language, which means that it must know the types of all variables at compile time.The compiler can usually infer what type we want to use based on the value and how we use it.In cases when many types are possible, atype annotation must be added.

letx =2.0;// f64lety: f32 =3.0;// f32

Here are the relevant sections in the new and old books:


[8]ページ先頭

©2009-2025 Movatter.jp