Comprehensive Rust(繁体中文). 242 47 融會貫通 - 練習 243 48 練習題的參考答案 244 XI 裸機開發:上午 245 49 歡迎瞭解 Rust 裸機開發 246 50 no_std 247 50.1 最簡單的 no_std 程式 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248 50.2 alloc . . . 標準程式庫包含各式實用巨集。 • println!(format, ..) prints a line to standard output, applying formatting described in std::fmt. • format!(format, ..) 的運作方式與 println! 類似,但會以字串形式傳回結果。 • dbg!(expression) 會記錄並傳回運算式的值。 • todo 等於size_of::0 码力 | 358 页 | 1.41 MB | 10 月前3
julia 1.10.10Comprehensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260 19.5 Generator Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261 19.6 Indexing map(abs2, 1:4) Base.Generator{UnitRange{Int64}, typeof(abs2)}(abs2, 1:4) julia> a 1 julia> b Base.Iterators.Rest{Base.Generator{UnitRange{Int64}, typeof(abs2)}, Int64}(Base.Generator{UnitRange{Int64} of any hard scope construct (i.e. within a let block, function or macro body, comprehension, or generator), a new local named x is created in the scope of the assignment; 3. Soft scope: If x is not already0 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.10.9Comprehensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260 19.5 Generator Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261 19.6 Indexing map(abs2, 1:4) Base.Generator{UnitRange{Int64}, typeof(abs2)}(abs2, 1:4) julia> a 1 julia> b Base.Iterators.Rest{Base.Generator{UnitRange{Int64}, typeof(abs2)}, Int64}(Base.Generator{UnitRange{Int64} of any hard scope construct (i.e. within a let block, function or macro body, comprehension, or generator), a new local named x is created in the scope of the assignment; 3. Soft scope: If x is not already0 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.11.4Comprehensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277 20.5 Generator Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277 20.6 Indexing map(abs2, 1:4) Base.Generator{UnitRange{Int64}, typeof(abs2)}(abs2, 1:4) julia> a 1 julia> b Base.Iterators.Rest{Base.Generator{UnitRange{Int64}, typeof(abs2)}, Int64}(Base.Generator{UnitRange{Int64} of any hard scope construct (i.e. within a let block, function or macro body, comprehension, or generator), a new local named x is created in the scope of the assignment; 3. Soft scope: If x is not already0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.5 DocumentationComprehensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277 20.5 Generator Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277 20.6 Indexing map(abs2, 1:4) Base.Generator{UnitRange{Int64}, typeof(abs2)}(abs2, 1:4) julia> a 1 julia> b Base.Iterators.Rest{Base.Generator{UnitRange{Int64}, typeof(abs2)}, Int64}(Base.Generator{UnitRange{Int64} of any hard scope construct (i.e. within a let block, function or macro body, comprehension, or generator), a new local named x is created in the scope of the assignment; 3. Soft scope: If x is not already0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.6 Release NotesComprehensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277 20.5 Generator Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277 20.6 Indexing map(abs2, 1:4) Base.Generator{UnitRange{Int64}, typeof(abs2)}(abs2, 1:4) julia> a 1 julia> b Base.Iterators.Rest{Base.Generator{UnitRange{Int64}, typeof(abs2)}, Int64}(Base.Generator{UnitRange{Int64} hard scope construct (i.e. within a let block, function, struct or macro body, comprehension, or generator), a new local named x is created in the scope of the assignment; 3. Soft scope: If x is not already0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.12.0 RC1Comprehensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280 20.5 Generator Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280 20.6 Indexing map(abs2, 1:4) Base.Generator{UnitRange{Int64}, typeof(abs2)}(abs2, 1:4) julia> a 1 julia> b Base.Iterators.Rest{Base.Generator{UnitRange{Int64}, typeof(abs2)}, Int64}(Base.Generator{UnitRange{Int64} hard scope construct (i.e. within a let block, function, struct or macro body, comprehension, or generator), a new local named x is created in the scope of the assignment; 3. Soft scope: If x is not already0 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta4Comprehensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280 20.5 Generator Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280 20.6 Indexing map(abs2, 1:4) Base.Generator{UnitRange{Int64}, typeof(abs2)}(abs2, 1:4) julia> a 1 julia> b Base.Iterators.Rest{Base.Generator{UnitRange{Int64}, typeof(abs2)}, Int64}(Base.Generator{UnitRange{Int64} hard scope construct (i.e. within a let block, function, struct or macro body, comprehension, or generator), a new local named x is created in the scope of the assignment; 3. Soft scope: If x is not already0 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta3Comprehensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280 20.5 Generator Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280 20.6 Indexing map(abs2, 1:4) Base.Generator{UnitRange{Int64}, typeof(abs2)}(abs2, 1:4) julia> a 1 julia> b Base.Iterators.Rest{Base.Generator{UnitRange{Int64}, typeof(abs2)}, Int64}(Base.Generator{UnitRange{Int64} hard scope construct (i.e. within a let block, function, struct or macro body, comprehension, or generator), a new local named x is created in the scope of the assignment; 3. Soft scope: If x is not already0 码力 | 2057 页 | 7.44 MB | 3 月前3
julia 1.12.0 beta1Comprehensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280 20.5 Generator Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280 20.6 Indexing map(abs2, 1:4) Base.Generator{UnitRange{Int64}, typeof(abs2)}(abs2, 1:4) julia> a 1 julia> b Base.Iterators.Rest{Base.Generator{UnitRange{Int64}, typeof(abs2)}, Int64}(Base.Generator{UnitRange{Int64} hard scope construct (i.e. within a let block, function, struct or macro body, comprehension, or generator), a new local named x is created in the scope of the assignment; 3. Soft scope: If x is not already0 码力 | 2047 页 | 7.41 MB | 3 月前3
共 34 条
- 1
- 2
- 3
- 4













