Crates.io | better |
lib.rs | better |
version | 0.1.1 |
source | src |
created_at | 2023-11-29 23:35:59.357626 |
updated_at | 2023-11-29 23:37:20.795432 |
description | rustcoed make better |
homepage | https://github.com/5-23/better-rs |
repository | https://github.com/5-23/better-rs |
max_upload_size | |
id | 1053684 |
size | 3,618 |
goal: rustcoed make better
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);
}