#delegates #proc-macro #delegation #inner #auto #trivial #type

macro thin_delegate

Auto implementation of trivial delegation to inner types

5 unstable releases

0.2.0 Jan 5, 2025
0.1.0 Jan 2, 2025
0.0.3 Oct 13, 2024
0.0.2 Oct 6, 2024
0.0.1 Oct 5, 2024

#1043 in Rust patterns

Download history 204/week @ 2024-09-30 181/week @ 2024-10-07 66/week @ 2024-10-14 2/week @ 2024-11-25 48/week @ 2024-12-09 197/week @ 2024-12-30 77/week @ 2025-01-06

284 downloads per month

MIT/Apache

85KB
2K SLoC

thin_delegate -- Auto implementation of trait functions by delegation to inner types

github crates.io docs.rs build status

This crate provides attribute macros that supports to define trait functions by delegation to inner types.

See docs.rs.

License

This repository is distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.

See LICENSE-APACHE, LICENSE-MIT, and COPYRIGHT for details.

Dependencies

~0.6–1.1MB
~24K SLoC