rusty_helloworld 0.1.0

Mastering Rust, step by playful step.Rusty_Helloworld is your one-stop shop for exploring the diverse landscape of Rust through practical examples. Whether you're a beginner diving into basic concepts or an intermediate looking to solidify your understanding, this crate offers a unique learning experience with code that resonates.
Documentation
mod helloworld;
mod random_num;
mod ownership;
mod structure;
mod panic;
mod enums;
mod collections;
mod error_handling;
mod generic;
mod traits;
mod lifetimes;
mod closures;
mod iters;
use helloworld::hello;
use rusty_helloworld::PrimaryColor;
use rusty_helloworld::mix;


fn main() {

    // This is how u import a function from different file. mod filename(prolly)
    // helloworld::main();
    // random_num::random_num();
    // ownership::ownership_fn();
    // structure::main();
    // panic::main();
    // enums::main();
    // hello::hello();
    // collections::main();
    // error_handling::main();
    // generic::main();
    // traits::main();
    // lifetimes::main();
    // closures::main();
    // iters::main();


    let red = PrimaryColor::Red;
    let yellow = PrimaryColor::Yellow;
    mix(red, yellow);
}