3 releases

0.0.2 Aug 18, 2023
0.0.1 Aug 18, 2023
0.0.0 Aug 18, 2023

#2 in #removed

Download history 18/week @ 2024-02-23 8/week @ 2024-03-01 4/week @ 2024-03-22 72/week @ 2024-03-29

76 downloads per month

MIT license

19KB
188 lines

Supplier

A replacement for core::any::Provider that has now been removed


lib.rs:

Supply values dynamically.

API is very unstable. It will likely include a breaking change with any patch version.

This is intended to replace the Provider API that was proposed for the core rust library, but has been decided to not include. Type tags are used to identify a type using a separate value. This module includes type tags for some very common types.

Currently type tags are not exposed to the user. But in the future, if you want to use the Supplier API with more complex types (typically those including lifetime parameters), you will need to write your own tags.

No runtime deps