Crates.io | derive-trait |
lib.rs | derive-trait |
version | 0.0.4 |
source | src |
created_at | 2023-10-07 09:54:41.06025 |
updated_at | 2023-10-08 07:03:24.536385 |
description | Derive a trait and a delegating impl from an inherent impl block. |
homepage | https://github.com/SOF3/derive-trait |
repository | https://github.com/SOF3/derive-trait |
max_upload_size | |
id | 996207 |
size | 35,648 |
Derive a trait and a delegating impl from an inherent impl block.
This macro is designated for single generic types with many small impl blocks and complex type bounds in each impl block.
#[inherent]
macro, the function author would still need to write twice
(the trait and the trait impl).Note that use of thsi crate is only advisable for impl blocks with complicated type bounds. It is not advisable to create single-implementor traits blindly.