7.6. Rust data type

发布时间 :2023-11-06 23:00:08 UTC      

There are several basic data types in the Rust language.

7.6.1. Integer type #

Integer type is referred to as integer type, which can be divided into the following categories according to bit length and sign or not:

Bit length

Signed

Unsigned

8-bit

I8

U8

16-bit

I16

U16

32-bit

I32

U32

64-bit

I64

U64

128-bit

I128

U128

Arch

Isize

Usize

Two types of integers isize and usize are used to measure data size, and their bit length depends on the target platform on which they are running, and processors with 32-bit architecture will use 32-bit length integers.

Integers are expressed in the following ways:

Binary system

Example

Decimal system

98_222

hexadecimal

0xff

Octal system

0o77

Binary system

0b1111_0000

Bytes (can only represent type U8)

Baked A’

Principles, Technologies, and Methods of Geographic Information Systems  102

In recent years, Geographic Information Systems (GIS) have undergone rapid development in both theoretical and practical dimensions. GIS has been widely applied for modeling and decision-making support across various fields such as urban management, regional planning, and environmental remediation, establishing geographic information as a vital component of the information era. The introduction of the “Digital Earth” concept has further accelerated the advancement of GIS, which serves as its technical foundation. Concurrently, scholars have been dedicated to theoretical research in areas like spatial cognition, spatial data uncertainty, and the formalization of spatial relationships. This reflects the dual nature of GIS as both an applied technology and an academic discipline, with the two aspects forming a mutually reinforcing cycle of progress.