#lifetime #macro-derive #enums #requirements #type #traits #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

#17 in #requirements

Download history 49/week @ 2023-11-20 80/week @ 2023-11-27 45/week @ 2023-12-04 55/week @ 2023-12-11 43/week @ 2023-12-18 32/week @ 2023-12-25 69/week @ 2024-01-08 72/week @ 2024-01-15 2/week @ 2024-01-22 24/week @ 2024-01-29 38/week @ 2024-02-05 60/week @ 2024-02-12 113/week @ 2024-02-19 120/week @ 2024-02-26 121/week @ 2024-03-04

415 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
~34K SLoC