Rust Note_Season(I)_List Posted on 2021-11-28 In Rust , Rust Season (I) Symbols count in article: 865 Reading time ≈ 1 mins. Rust Basic 基礎總結 Rust Season (I) 總整理… Read more »
Rust Note(13)_enum(II) with struct Posted on 2021-11-25 Edited on 2021-11-27 In Rust Symbols count in article: 1.1k Reading time ≈ 1 mins. enum 基本型 enum 基本型請參閱 Rust Note(12)_enum(I) Read more »
Rust Note(12) enum(I) Posted on 2021-11-24 Edited on 2021-11-25 In Rust Symbols count in article: 1.6k Reading time ≈ 1 mins. enum (enumeration) 枚舉 另外一種型態的類似 struct 結構體概念。不完全相同,也不完全不同。 Read more »
Rust Note(11)_trait Posted on 2021-11-23 In Rust Symbols count in article: 1.9k Reading time ≈ 2 mins. trait 特質介紹 特質/特性 : 這個是一個抽象的接口。來接續上篇所說的抽象層的概念。 Read more »
Rust Note(10)_Abtract Concept 抽象化概念 Posted on 2021-11-14 In Rust Symbols count in article: 1.2k Reading time ≈ 1 mins. Abstract 抽象化 理解抽象化概念剛好可以利用 struct 來做理解. 結構體詳細介紹請參閱前一篇 : Rust Note(9) Read more »
Rust Note(9)_Struct_implement Posted on 2021-11-05 Edited on 2021-11-10 In Rust Symbols count in article: 3.6k Reading time ≈ 3 mins. struct & struct implement用於組合並儲存不同類型的資料。 有別於 Array, Vector 只能存放同類型的資料,struct 提供了更加彈性的組合。 透過組合用法,可以達成類似其他語言,比如說 Python or Javascript 一樣,使用類似 class 的概念。 Read more »
Rust Note(8)_Tuple Array Vector Posted on 2021-11-01 In Rust Symbols count in article: 1.1k Reading time ≈ 1 mins. 數據集合類型 除了單一基本數據類型,接著就是數據集合類型。 Read more »
Rust Note(7)_Stack & Heap Posted on 2021-10-30 Edited on 2021-11-01 In Rust Symbols count in article: 1.1k Reading time ≈ 1 mins. Stack & Heap棧 和 堆 的區別。 Read more »
Rust Note(6)_loop for while Posted on 2021-10-25 In Rust Symbols count in article: 1.3k Reading time ≈ 1 mins. Rust 迴圈 迴圈有以下 3 種類型 : loop : 無限迴圈, 可藉由 break & continue 來設定中斷點 while : 在有效的條件裡, 迴圈! for…in range : 在設定的條件範圍內, 迴圈! Read more »
Rust Note(5)_if_else_match Posted on 2021-10-23 In Rust Symbols count in article: 1.9k Reading time ≈ 2 mins. if else, if else if 條件判斷 如同其他語言一樣, Rust 也是有流程控制 Control Condition Flow使用的原則是, 只要有一個符合使用者所設定的條件, 那下方的判斷就不再執行. Read more »