You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Language/Rust/Rust.md
+13-10Lines changed: 13 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,27 +13,30 @@ has_children: false
13
13
14
14
Rust is a systems programming language that focuses on speed, memory safety, and parallelism. It is developed by Mozilla and is used to build fast, reliable, and secure software. Rust is an object-oriented, class-based, garbage-collected language with C-style syntax. It supports interfaces, mixins, abstract classes, generics, and optional typing.
15
15
16
-
### 1) Object-Oriented
16
+
---
17
+
18
+
1.**Object-Oriented**
17
19
18
-
- Rust is an object-oriented language, which means that everything in Rust is an object.
19
-
- Objects are instances of classes, which are blueprints for creating objects.
20
+
- Rust is an object-oriented language, which means that everything in Rust is an object.
21
+
- Objects are instances of classes, which are blueprints for creating objects.
20
22
21
-
### 2) Trait-Based
23
+
2.**Trait-Based**
22
24
23
-
- Rust is a trait-based language, which means that all objects are created from traits.
24
-
- Traits are used to define the structure and behavior of objects.
25
+
- Rust is a trait-based language, which means that all objects are created from traits.
26
+
- Traits are used to define the structure and behavior of objects.
25
27
26
-
### 3) Garbage-Collected
28
+
3.**Garbage-Collected**
27
29
28
-
- Rust is a garbage-collected language, which means that the Rust VM automatically reclaims memory occupied by objects that are no longer in use.
29
-
- This allows developers to focus on writing code instead of worrying about memory management, although we now worry about 'borrowing', which is a new concept.
30
+
- Rust is a garbage-collected language, which means that the Rust VM automatically reclaims memory occupied by objects that are no longer in use.
31
+
- This allows developers to focus on writing code instead of worrying about memory management, although we now worry about 'borrowing', which is a new concept.
30
32
31
33
---
32
34
33
35
## Examples
34
36
35
-
Here are some simple example problems that explore making a coffee. Here is some example rust code:
37
+
Here are some simple example problems that explore making a coffee.
0 commit comments