| Crates.io | autotrait2 |
| lib.rs | autotrait2 |
| version | 0.1.1 |
| created_at | 2025-06-18 12:04:28.008033+00 |
| updated_at | 2025-06-18 12:10:23.356656+00 |
| description | generate trait definitions from impl blocks |
| homepage | https://github.com/yozhgoor/autotrait2 |
| repository | https://github.com/yozhgoor/autotrait2 |
| max_upload_size | |
| id | 1716997 |
| size | 18,673 |
Same as the autotrait crate.
Use this crate if the first one didn't work.
This crate allow you to define traits without repeating yourself with a trait block.
So you only need the following:
struct Stuff;
#[autotrait2::autotrait]
impl MyTrait for Stuff {
fn a_trait_function(&self) -> String {
// ...
}
}