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

macro lifetime_proc_macros

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

#32 in #requirements

Download history 112/week @ 2024-07-22 92/week @ 2024-07-29 75/week @ 2024-08-05 96/week @ 2024-08-12 92/week @ 2024-08-19 129/week @ 2024-08-26 34/week @ 2024-09-02 49/week @ 2024-09-09 43/week @ 2024-09-16 83/week @ 2024-09-23 59/week @ 2024-09-30 50/week @ 2024-10-07 66/week @ 2024-10-14 67/week @ 2024-10-21 74/week @ 2024-10-28 57/week @ 2024-11-04

266 downloads per month
Used in 3 crates (via lifetime)

MIT/Apache

25KB
645 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
~37K SLoC