#lifetime #requirements #macro-derive #enums #reuse #allowing #change

lifetime_proc_macros_impl

Traits and derive macros to change the lifetime of a type, allowing efficient reuse of your stucts or enums with any lifetime requirement

2 releases

0.1.0 Aug 21, 2021

#31 in #reuse

Download history 86/week @ 2024-03-17 47/week @ 2024-03-24 101/week @ 2024-03-31 50/week @ 2024-04-07 144/week @ 2024-04-14 87/week @ 2024-04-21 71/week @ 2024-04-28 80/week @ 2024-05-05 130/week @ 2024-05-12 81/week @ 2024-05-19 45/week @ 2024-05-26 95/week @ 2024-06-02 88/week @ 2024-06-09 92/week @ 2024-06-16 84/week @ 2024-06-23 41/week @ 2024-06-30

324 downloads per month
Used in 4 crates (via lifetime_proc_macros)

MIT/Apache

23KB
635 lines

lifetime

This crate provides traits and derive macros to change the lifetime of a type, allowing efficient reuse of your stucts or enums with any lifetime requirement.

Have a look at the documentation for more information.

Install

[dependencies]
lifetime = { version = "x.y", features = ["macros"] }

Safety

This crate uses #![forbid(unsafe_code)]. We want to keep this crate 100% safe and its dependencies to a minimum. Currently this crate has no dependencies.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~1.5MB
~35K SLoC