better

Crates.iobetter
lib.rsbetter
version0.1.1
sourcesrc
created_at2023-11-29 23:35:59.357626
updated_at2023-11-29 23:37:20.795432
descriptionrustcoed make better
homepagehttps://github.com/5-23/better-rs
repositoryhttps://github.com/5-23/better-rs
max_upload_size
id1053684
size3,618
Asta(아스타) (P-Asta)

documentation

README

better-rs

goal: rustcoed make better

new constructor

use better;

#[derive(Debug)]
struct Asdf{
    a: isize,
    b: isize,
}

#[better::new]
impl Asdf {
    fn new(a: isize, b: isize) -> Asdf{
        Asdf { a: a + 1, b: b + 1 }
    }
    fn a(&self) -> isize{
        self.a
    }
}


fn main() {
    let a = Asdf();
    println!("{:?}", a);
    
}
Commit count: 15

cargo fmt