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

#34 in #requirements

Download history 44/week @ 2024-05-27 92/week @ 2024-06-03 86/week @ 2024-06-10 86/week @ 2024-06-17 96/week @ 2024-06-24 115/week @ 2024-07-01 116/week @ 2024-07-08 220/week @ 2024-07-15 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

304 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
~35K SLoC