Skip to content

Commit

Permalink
move files around
Browse files Browse the repository at this point in the history
  • Loading branch information
saltukalakus committed Nov 2, 2024
1 parent 5fd1651 commit f56b641
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 32 deletions.
6 changes: 4 additions & 2 deletions src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
- [Structs](./essentials/types/struct.md)
- [Enums](./essentials/types/enum.md)
- [Structs vs Enums](./essentials/types/struct-vs-enums.md)
- [Self Keyword](./essentials/self.md)
- [Generics](./essentials/types/generics.md)
- [Standard Library](./essentials/std-lib/intro.md)
- [Self Keyword](./essentials/std-lib/self.md)
- [Imp Keyword](./essentials/std-lib/imp.md)
- [Borrow vs Ownership](./essentials/borrow-vs-ownership.md)
- [Imp Keyword](./essentials/imp.md)

- [Patterns](./patterns.md)
- [Behavioral Patterns](./patterns/behavioral.md)
Expand Down
28 changes: 0 additions & 28 deletions src/essentials/modules.md

This file was deleted.

File renamed without changes.
1 change: 1 addition & 0 deletions src/essentials/std-lib/intro.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Standard Library
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/essentials/types/struct-vs-enums.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# What is the differences between Structs vs Enums?
### What is the differences between Structs vs Enums?

Enums and structs are both ways to define custom data types in Rust, but they serve different purposes and have different characteristics. Here’s a detailed comparison of enums and structs:

Expand Down
2 changes: 1 addition & 1 deletion src/essentials/types/struct.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Structs in Rust are custom data types that allow you to group related data together. They are similar to classes in object-oriented languages but without the associated methods for encapsulation. Structs are used to create complex data types that can be used to model real-world entities.

## Types of Structs
### Types of Structs

**Classic Structs**:

Expand Down

0 comments on commit f56b641

Please sign in to comment.