#cow #static #bounded #owned #derive

macro no-std bounded-static-derive

Macro to derive ToBoundedStatic and IntoBoundedStatic traits

6 releases (breaking)

0.5.0 Apr 29, 2023
0.4.0 Jun 8, 2022
0.3.0 Mar 10, 2022
0.2.1 Feb 22, 2022
0.1.0 Feb 18, 2022

#10 in #bounded

Download history 1246/week @ 2023-02-15 1098/week @ 2023-02-22 873/week @ 2023-03-01 830/week @ 2023-03-08 886/week @ 2023-03-15 981/week @ 2023-03-22 1011/week @ 2023-03-29 1055/week @ 2023-04-05 1586/week @ 2023-04-12 1033/week @ 2023-04-19 1600/week @ 2023-04-26 1414/week @ 2023-05-03 2714/week @ 2023-05-10 2614/week @ 2023-05-17 2462/week @ 2023-05-24 1684/week @ 2023-05-31

9,633 downloads per month
Used in 12 crates (via bounded-static)

Apache-2.0

26KB
477 lines

Documentation Crate

Bounded Static Derive

This crate provides the ToStatic macro which can be used to derive implementations of the ToBoundedStatic and IntoBoundedStatic traits for all structand enum that can be converted to a form that is bounded by 'static.

The ToStatic macro should be used via the bounded-static crate rather than using this crate directly.

bounded-static = { version = "0.5.0", features = [ "derive" ] }

License

bounded-static-derive is distributed under the terms of the Apache License (Version 2.0).

See LICENSE for details.

Copyright 2022

Dependencies

~0.5–0.9MB
~22K SLoC