bobo

Crates.iobobo
lib.rsbobo
version0.1.1
sourcesrc
created_at2024-09-21 13:15:34.556103
updated_at2024-09-21 13:19:46.748188
descriptionan elegant and powerful rust development tool library
homepagehttps://github.com/moluopro
repositoryhttps://github.com/moluopro
max_upload_size
id1382210
size2,100
Mo Luo (moluopro)

documentation

https://github.com/moluopro

README

BOBO

an elegant and powerful rust development tool library

Quick Start

use bobo::oop::*;

class! {
    Person {
        name: String
        age: u32

        fn greet(){
            println!("{}", format!("Hello, my name is {}.", self.name));
        }

        fn get_age(years: u32) -> u32 {
            self.age + years
        }
    }
}

fn main() {

    let person = Person {
        name: String::from("Tom"),
        age: 30,
    };

    person.greet();

    println!("I am {} years old.", person.get_age(5));
}

Commit count: 0

cargo fmt