Module runa_core::provide_any
source · Expand description
The provide_any API “borrowed” from the Rust libstd.
Remove after the API is stabilized. (see: https://github.com/rust-lang/rust/issues/96024)
Structs
Traits
- An object of arbitrary type. This whole API is stolen from Rust’s std::any::Provider. We should remove this when that stabilizes.
- Like
Provider
, but with a “slot” to hint on what’s being requested. Normally withProvider
, the provider needs to provide everything it can provide, leading toO(n)
time complexity. This trait instead provide a “slot” to hint on what’s being requested, allowing providers to provide only what’s needed, thus speed things up.