Comprehensive Rust(繁体中文)
部分衛生的巨集。 • Rust 是多範式的語言。舉例來說,它具備強大的物件導向程式設計功能,雖然並非函式語言,卻涉及 各式各樣的函式概念。 5.2 變數 Rust provides type safety via static typing. Variable bindings are made with let: fn main() { let x: i32 = 10; println!("x: question about modifying a[3] can spark an interesting discussion, but the answer is that for memory safety reasons you cannot do it through a at this point in the execution, but you can read the data from developers have turned off some compiler safety features and have to write correct code by themselves. It means the compiler no longer enforces Rust's memory-safety rules. 174 30.2 對裸指標解參考 建立指標相當安全,不過對指標解參考就需要使用0 码力 | 358 页 | 1.41 MB | 10 月前3julia 1.13.0 DEV
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383 28.6 Garbage Collection Safety . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383 28.7 Non-constant Function Specifications Accessing Data through a Pointer . . . . . . . . . . . . . . . . . . . . . . . . . . . 387 28.16 Thread-safety . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388 28.17 More About may be undefined in inner local scopes, depending on where the code is run, in order to balance safety and convenience. The hard and soft local scoping rules define the interplay between global and local0 码力 | 2058 页 | 7.45 MB | 3 月前3Julia 1.12.0 RC1
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384 28.6 Garbage Collection Safety . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384 28.7 Non-constant Function Specifications Accessing Data through a Pointer . . . . . . . . . . . . . . . . . . . . . . . . . . . 388 28.16 Thread-safety . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389 28.17 More About may be undefined in inner local scopes, depending on where the code is run, in order to balance safety and convenience. The hard and soft local scoping rules define the interplay between global and local0 码力 | 2057 页 | 7.44 MB | 3 月前3Julia 1.12.0 Beta4
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383 28.6 Garbage Collection Safety . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383 28.7 Non-constant Function Specifications Accessing Data through a Pointer . . . . . . . . . . . . . . . . . . . . . . . . . . . 387 28.16 Thread-safety . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388 28.17 More About may be undefined in inner local scopes, depending on where the code is run, in order to balance safety and convenience. The hard and soft local scoping rules define the interplay between global and local0 码力 | 2057 页 | 7.44 MB | 3 月前3Julia 1.12.0 Beta3
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383 28.6 Garbage Collection Safety . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383 28.7 Non-constant Function Specifications Accessing Data through a Pointer . . . . . . . . . . . . . . . . . . . . . . . . . . . 387 28.16 Thread-safety . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388 28.17 More About may be undefined in inner local scopes, depending on where the code is run, in order to balance safety and convenience. The hard and soft local scoping rules define the interplay between global and local0 码力 | 2057 页 | 7.44 MB | 3 月前3julia 1.12.0 beta1
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383 28.6 Garbage Collection Safety . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383 28.7 Non-constant Function Specifications Accessing Data through a Pointer . . . . . . . . . . . . . . . . . . . . . . . . . . . 387 28.16 Thread-safety . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388 28.17 More About may be undefined in inner local scopes, depending on where the code is run, in order to balance safety and convenience. The hard and soft local scoping rules define the interplay between global and local0 码力 | 2047 页 | 7.41 MB | 3 月前3julia 1.10.10
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 358 27.6 Garbage Collection Safety . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 358 27.7 Non-constant Function Specifications Accessing Data through a Pointer . . . . . . . . . . . . . . . . . . . . . . . . . . . 362 27.16 Thread-safety . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 363 27.17 More About becomes clear that implicit conversion would be useful, and that some constructors meet the above "safety" criteria, then convert methods can be added. These methods are typically quite simple, as they0 码力 | 1692 页 | 6.34 MB | 3 月前3Julia 1.10.9
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357 27.6 Garbage Collection Safety . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 358 27.7 Non-constant Function Specifications Accessing Data through a Pointer . . . . . . . . . . . . . . . . . . . . . . . . . . . 362 27.16 Thread-safety . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362 27.17 More About becomes clear that implicit conversion would be useful, and that some constructors meet the above "safety" criteria, then convert methods can be added. These methods are typically quite simple, as they0 码力 | 1692 页 | 6.34 MB | 3 月前3Julia 1.11.4
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379 28.6 Garbage Collection Safety . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380 28.7 Non-constant Function Specifications Accessing Data through a Pointer . . . . . . . . . . . . . . . . . . . . . . . . . . . 384 28.16 Thread-safety . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 385 28.17 More About becomes clear that implicit conversion would be useful, and that some constructors meet the above "safety" criteria, then convert methods can be added. These methods are typically quite simple, as they0 码力 | 2007 页 | 6.73 MB | 3 月前3Julia 1.11.5 Documentation
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380 28.6 Garbage Collection Safety . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380 28.7 Non-constant Function Specifications Accessing Data through a Pointer . . . . . . . . . . . . . . . . . . . . . . . . . . . 384 28.16 Thread-safety . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 385 28.17 More About becomes clear that implicit conversion would be useful, and that some constructors meet the above "safety" criteria, then convert methods can be added. These methods are typically quite simple, as they0 码力 | 2007 页 | 6.73 MB | 3 月前3
共 11 条
- 1
- 2