Skip to content

kannandreams/learning-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust cookbook

Learning Guide for Rustaceans

  • Print & Read Statement
  • Functions
  • Primitive data types
  • Complex Data types
  • Enums
  • Structs
  • Standard Libraries
  • Ownership & Borrow
  • Loop & Control Statements
  • Exception Handling
  • Implementation of Custom Types
  • Rust Module System
    • Package
    • Crates
    • Module
    • Paths
  • Generics
  • Traits
  • Lifetimes
  • Unit Testing
  • OOPS
  • Functional programming
  • Patterns and Matching
  • Concurrency
  • Macros

Design Patterns

Creational Patterns**

  1. Singleton

Code Example

  1. Builders

Code Example

  1. Abstract Factory

Code Example

Behavioural Patterns

  1. Command

Code Example

  1. Observer

Code Example

  1. Strategy

  2. State

  3. Iterator

Structural Patterns

  1. Adaptor

  2. Decorator

  3. Facade

  4. Proxy

Commands

cargo new rust-learning --bin

cargo run

cargo new utils --lib

cargo run --example <filename>

Choose the bin

cargo build --bin another-bin

cargo run --bin rust-learning cargo run --bin another-bin

Macros

  • #[allow(dead_code)]

Learning Projects

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages