Skip to content

Generate trait definitions from impl blocks

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE.Apache-2.0
MIT
LICENSE.MIT
Notifications You must be signed in to change notification settings

yozhgoor/autotrait2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

autotrait2

actions status crate version dependencies status licenses

Same as the autotrait crate.

Use this crate if the first one didn't work.

Usage

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 {
        // ...
    }
}

About

Generate trait definitions from impl blocks

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE.Apache-2.0
MIT
LICENSE.MIT

Stars

Watchers

Forks

Packages

No packages published

Languages