rustbook_learning_guide/lib.rs
1//! # Rust Learning Guide
2//!
3//! A comprehensive guide to learning Rust programming language with practical examples.
4
5pub mod basics;
6pub mod collections;
7pub mod data_structures;
8pub mod enums_and_matching;
9pub mod traits_and_generics;
10pub mod ownership_borrowing;
11pub mod polymorphism;
12pub mod async_programming;
13pub mod smart_pointers;
14pub mod iterators;
15pub mod lifetimes;
16pub mod projects;
17
18/// A simple greeting function to demonstrate basic Rust syntax
19pub fn greet(name: &str) -> String {
20 format!("Hello, {}!", name)
21}
22
23
24
25